From: "Barrett-Small, Richard" <[EMAIL PROTECTED]> > I'm looking for a way to print to a temporary filehandle or something > without having to open a file to print to.
You can use IO::String or IO::stringy to create a filehandle that points to a string, not to a file. (I believe IO::String is part of the core in recent perls, IO::stringy may be installed from CPAN or PPM) > I am running some substitutions on a file which has a distinctive > record structure. Each record is printed to the output filehandle in > turn after the substitutions have been performed. Once all records are > printed out I need to go back over them i.e. go back to the top and do > some further work on the OUT filehandle. If you can change the code it might be best not to print them at all. You may either push them into an array or append them into a string. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>