ftumsh has asked for the wisdom of the Perl Monks concerning the following question:
Lo all,
I have seen some modules that allow the opening of a file by passing one parameter to just the one method. The param can be one of file name, open file handle or an IO::File object.
I want to do the same sort of thing. What sort of tests do I do to see what type of paramter has been passed?
Thx
John
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: opening files using handles, objects etc
by davorg (Chancellor) on Jul 06, 2006 at 10:11 UTC | |
by ftumsh (Scribe) on Jul 06, 2006 at 10:39 UTC | |
by Gilimanjaro (Hermit) on Jul 06, 2006 at 12:24 UTC | |
by ftumsh (Scribe) on Jul 06, 2006 at 10:33 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom