Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: It's friday

by plaid (Chaplain)
on Jul 15, 2000 at 00:11 UTC ( [id://22628]=note: print w/replies, xml ) Need Help??


in reply to It's friday, I can't think.

If you are writing these subroutines yourself, you should just write to a filehandle. open it somewhere and then just
print FH $whatever;
If these are subroutines that someone else wrote, and you really don't want to edit them, you could do something like
open(FH, "output.txt"); my $oldfh = select(FH); sub_that_writes_to_file(); select $oldfh; # reset to whatever it was close FH;
This will work provided that the sub doesn't explicitly do print STDOUT.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found