Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: It's friday

by plaid (Chaplain)
on Jul 15, 2000 at 00:11 UTC ( #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? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2022-01-27 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (71 votes). Check out past polls.

    Notices?