in reply to Just when you thought you'd got it: 'foreach $f (@foo)' vs 'foreach (@foo)'
sub suck_this { my ($what) = @_ ; open my $FH, '<', \$what ; print " Read:" ; local $_; while (<$FH>) { s/\r/\\r/g ; s/\n/\\n/g ; print " '$_'" ; } ; print "\n" ; } ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Just when you thought you'd got it: 'foreach $f (@foo)' vs 'foreach (@foo)'
by blazar (Canon) on Oct 16, 2008 at 10:50 UTC | |
by ikegami (Patriarch) on Oct 16, 2008 at 13:49 UTC |