in reply to Re^4: Hi Monks could you pls help Perl dummy user
in thread Hi Monks could you pls help Perl dummy user

Mmmm, I thought only readline is special-cased. Who can remember all this ****.

:/

$ perl -MO=Deparse -le " while( my $f = readdir $DIR ){ print $f; } " BEGIN { $/ = "\n"; $\ = "\n"; } while (defined(my $f = readdir $DIR)) { do { print $f }; } -e syntax OK

Replies are listed 'Best First'.
Re^6: Hi Monks could you pls help Perl dummy user
by Anonymous Monk on Dec 17, 2014 at 12:01 UTC
    I know how to use Deparse, ty. I'd rather just put defined in there without caring whether Perl is clever enough to DWIM.