Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Redirect subroutine output

by syphilis (Chancellor)
on Jan 06, 2014 at 08:54 UTC ( #1069474=note: print w/replies, xml ) Need Help??

in reply to Redirect subroutine output

Not sure if this counts as a "redirection to file":
use strict; use warnings; open WR, '>', 'file.out' or die "Can't open WR for writing: $!"; print WR foo(); close WR or die "Can't close WR: $!"; sub foo { return 'FOO'; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069474]
[Corion]: At least back in the day Firefox (well, Netscape) used to cache the DNS itself because there was no OS API to asynchronously resolve names (?) Maybe that code still lives on
[Corion]: Mhmm. Our datawarehouse is named after the department, except that the department changed its name one year ago. Now I guess I'm looking for the moral equivalent of "THE Datawarehouse", where "THE" stands for "Traditional High-valued Expertise" ;)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-07-26 08:40 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (386 votes). Check out past polls.