in reply to Re: Perl parser tortured (was: Perl Idioms Explained)
in thread Perl Idioms Explained - my ($foo, $bar) = @{shift(@_)}{qw/ -foo -bar /}
That will be fixed in Perl 6, which will distinguish
from${shift} # always an expression in the middle
It's really quite amazing how much just adding one set of brackets to a language helps.$«shift» # always a literal
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Perl parser tortured (was: Perl Idioms Explained)
by demerphq (Chancellor) on Mar 04, 2004 at 10:55 UTC |
In Section
Meditations