dmitri has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to create an IO::File or IO::Handle object that would use a string instead of an actual file?
Reason: I have a tar file in a scalar $string. I'd like to examine its contents using Archive::Tar. However, there are no APIs in Archive::Tar to use a scalar to initialize it, but it can take a filehandle.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sticking IO::Handle on top of a scalar.
by broquaint (Abbot) on Jan 14, 2004 at 16:36 UTC | |
|
Re: Sticking IO::Handle on top of a scalar.
by borisz (Canon) on Jan 14, 2004 at 16:33 UTC | |
|
Re: Sticking IO::Handle on top of a scalar.
by ysth (Canon) on Jan 14, 2004 at 16:47 UTC |