See perldoc perlsub, specifically the section entitled Prototypes. If you prototype them with sub my_open (*$) I think it should work the way you want. An alternative might be to use an OO interface and inherit from IO::Handle, just overriding the relevant methods.
In reply to Re: Replicate open() and close()
by Fletch
in thread Replicate open() and close()
by BigLug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |