[sf-perl] Unusual Perl "feature"

Quinn Weaver quinn at pgexperts.com
Sun Feb 17 18:40:41 PST 2013

On Feb 15, 2013, at 4:14 PM, Mark Kvale wrote:

> This is documented behavior; see
> http://perldoc.perl.org/perlop.html#Symbolic-Unary-Operators
> My guess on use? As the man says, '-bareword is equivalent to the string "-bareword"', allowing for fat comma keys without needing quotes, e.g.
> (-bareword => 1, -title => 2)

But you don't need to quote keys anyway. This feature must exist for some other reason.

Perl is like hobbits, to paraphrase Gabdalf: you can know it for years, and yet still it can surprise you. :)


Quinn Weaver
PostgreSQL Experts, Inc.
1-888-743-9778 (my extension: 510)

More information about the SanFrancisco-pm mailing list