in reply to Re: Perl parser gets confused with call to "sort" w/o parens
in thread Perl parser gets confused with call to "sort" w/o parens
:( Oh, indeed, it's documented, thanks. Yet, CL#1 works OK, and the reason why Perl can be confused here and care is required is neither clear nor explained, in documentation. How CL#4 can be parsed to what's printed out, is unclear. OK, just a thought...
Edit: OK, CL#1 was parsed specially because there was single letter identifier:
>perl -lwe "sub x{@_} print sort x(qw(q w e r t y))" eqrtwy >perl -lwe "sub xx{@_} print sort xx(qw(q w e r t y))" qwerty
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl parser gets confused with call to "sort" w/o parens
by BillKSmith (Monsignor) on May 16, 2018 at 14:53 UTC |
In Section
Seekers of Perl Wisdom