On Thu Aug 03 02:55:42 2000, Peter@PSDT.com wrote:
> If a bareword argument is given to sort, strict 'subs' doesn't
> complain:
>
> $ perl -Mstrict -wle 'print sort foo'
> foo
> $
>
> Just so you know that the bareword interpretation is being applied:
>
> $ perl -MO=Deparse -wle 'print sort foo'
>
> print sort('foo');
>
> -e syntax OK
>
> Happens on perl 5.6.0 & 5.005_03 on Linux, and Perl 5.004_04 on
> Solaris 2.5.1.
>
And is still present in Perl 5.14.2:
#####
$ perl -Mstrict -wle 'print sort foo'
foo
$ perl -Mstrict -wlE 'say sort foo'
foo
#####
---
via perlbug: queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=3629
Thread Previous
|
Thread Next