Re: Naming the @{[]} operator
"A. Pagaltzis" <[email protected]> Sat, 8 Jul 2006 10:42:32 +0200
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <20060708084232.GD2620@klangraum> |
* Philippe "BooK" Bruhat <[email protected]> [2006-07-07 17:35]: > I recently thought about the @{[]} operator again (one of the > semi-famous Perl "secret operators"), and called it the > "babycart" operator. That name only works as long as there isn’t anything within. The spaceship operator is always `<=>`, and “diamond” refers specifically to the empty `<>` form of the read operator. `@{[]}` is really a form of parenthesis. So call it the fat brackets. Regards, -- #Aristotle *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}; &Just->another->Perl->hacker;