szabgab has asked for the wisdom of the Perl Monks concerning the following question:
And turn it to something like this:my $filename = shift; if ($line = /something/) { } foreach (@arr) { if (/abc/) { print; } } sub foo { my $x = shift; }
I looked at B::Deparse but I could not convince it.my $filename = shift @ARGV; if ($line = $_ =~ /something/) { } foreach $_ (@arr) { if ($_ =~ /abc/) { print $_; } } sub foo { my $x = shift @_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Showing implicit variables?
by toolic (Bishop) on Feb 27, 2009 at 18:39 UTC | |
by szabgab (Priest) on Feb 27, 2009 at 23:15 UTC |