It may be beside the point, but -- assuming you have a new enough perl -- I would recommend avoiding bareword filehandles, and switching to autovivifying lexicals:
use strict; use warnings; { package mmm; sub fopen { CORE::open $_[0], $_[1]; } sub fclose { CORE::close $_[0]; } } mmm::fopen(my $fh, ">test"); print $fh "Foo, bar.\n"; mmm::fclose($fh);
In reply to Re: filehandle question
by revdiablo
in thread filehandle question
by warpod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |