Skip to content

Comment on Perlsecret – Perl secret operators and constantsparent

Comments

Right, that's the point of TFA. It doesn't list "special" operators, it lists "secret" operators -- that is, operators combined from existing sigils that do clever things.

The "Venus" operator is a good example: it's the '+' addition operator! You just add zero to a value that's coercible into a number.

The Eskimo operators are also interesting: similar to a SQL injection attack, you use a close brace and an open brace to stop and start a new code block from within a string that's sent to the interpreter. Perl didn't invent open and close braces: hence the verb "discover" rather than "implement".

The whole page is a bit of a lark, and a good example of why some of us don't enjoy Perl!

Fair point. I should've read more before jumping in here with my first reaction.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.