Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: saving search results to file

by eXile (Priest)
on May 04, 2005 at 02:23 UTC ( [id://453795]=note: print w/replies, xml ) Need Help??


in reply to Re: saving search results to file
in thread saving search results to file

if you wrap this code into a subroutine, and have a global array of filehandles you wouldn't have to loop through the handles manually, this was just a showing-the-concept.

I'd become something like:

<open filehandles here ...> my @global_filehandles = qw(STDOUT STDERR FILE); printh("look mom, printed to 3 filehandles!\n"); sub printh { my $text = shift; foreach my $fh (@global_filehandles) { no strict 'refs'; print $fh $text; use strict; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://453795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-25 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found