another loop. Memory
shouldn't be an issue.
Regards,
Richard
-Original Message-
From: Daniel Staal [mailto:[EMAIL PROTECTED]
Sent: 13 April 2004 16:32
To: Perl Beginners
Subject: Re: Avoiding using temporary files
--As of Tuesday, April 13, 2004 2:16 PM +0200, Jenda Krynic
Richard,
I wouldn't look to use a temporary file. In stead push your output into
an array then iterate through the array on your second pass. I would
expect you to get better performance as you won't have to worry about
disk I/O.
Regards,
Adam
On Apr 13, 2004, at 4:55 AM, Barrett-Small, Richar
--As of Wednesday, April 14, 2004 11:16 AM +0100, Richard Barrett-Small is
alleged to have said:
Could you give me a stab of code demonstrating appending or printing to a
scalar and also how I might avoid printing OUT but retain the changes I
made to the filehandle so they can be passed to anoth
Thank you so much for this, Jenda and Daniel>
Could you give me a stab of code demonstrating appending or printing to a
scalar and also how I might avoid printing OUT but retain the changes I
made to the filehandle so they can be passed to another loop. Memory
shouldn't be an issue
Richard
.
"Da
--As of Tuesday, April 13, 2004 2:16 PM +0200, Jenda Krynicky is alleged to
have said:
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
prin
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 par