in reply to 'strict refs' + 'strict sub' = suck.
Note that later versions of perl (5.6+ ?) will autovivify a scalar to a file handle so you can just do this:sub mysub { my $fh = \do { local *FILE}; open($fh, ">myfile")... ... }
sub mysub { open(my $fh, ">myfile")... ... }
|
|---|