in reply to Re: Unobvious Pathological Code Snippets
in thread Unobvious Pathological Code Snippets

Am I missing something? With perl 5.8.8 in linux I get an error:
poletti@PolettiX:~/sviluppo/perl$ perl pathological.pl Missing $ on loop variable at pathological.pl line 1. poletti@PolettiX:~/sviluppo/perl$ poletti@PolettiX:~/sviluppo/perl$ poletti@PolettiX:~/sviluppo/perl$ cat pathological.pl for qw(Whom the bell tolls) {} # huh? for qw() ? continue { print "$_\n"; next }
while the OP's example...

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.

Replies are listed 'Best First'.
Re^3: Unobvious Pathological Code Snippets
by gaal (Parson) on Apr 01, 2006 at 07:49 UTC
    Oops, ()-less qw requires a loop variable. Fixed.