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 @_; }
In reply to Showing implicit variables? by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |