in reply to Re: Re: mapping through filehandles
in thread mapping through filehandles

Yes, as Anonymous Monk said, one could be lazy, without using any reference to file handles, but this practice has the backlash that is does not work using strict. A solution (but I personally don't like it) is to use a throw-away block in order to conjuring with barewords without strict:
{ no strict; map { print $_ $log } (STDOUT, R); } $foo = "bar"; # Error! here we're re-using string

Update: runrig's one is the best way to be lazy :)