Well, there is of course a way of doing it, but it's not pretty...
sub brutesay{ if(@_>=1){ for(@_){print("$_\n")} }else{ ($package,$filename,$line) = caller; open $fh,$filename; for $i(0..$line-2){<$fh>} if(<$fh>=~/brutesay *(\(\))? *;/){print "$_\n";} } }
In reply to Re: Spotting an empty array as argument
by Chuma
in thread Spotting an empty array as argument
by Chuma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |