Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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
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 wandering the Monastery: (8)
As of 2020-05-26 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?