in reply to Re^8: Determining what line a filehandle is on
in thread Determining what line a filehandle is on
or if you prefer a different look, you can use Symbol and then do it with:my $foo = do {local *FH}; # etc as above
But with 5.6 it autovivifies for you, and that is rather nice.my $foo = gensym(); # And so on
|
|---|