in reply to Replicate open() and close()
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Replicate open() and close()
by sauoq (Abbot) on Jan 29, 2003 at 22:52 UTC | |
|
Re: Re: Replicate open() and close()
by BigLug (Chaplain) on Jan 29, 2003 at 22:56 UTC | |
by sauoq (Abbot) on Jan 30, 2003 at 00:05 UTC |