Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Redirecting STDOUT from internal function with 5.6.1 restrictions

by tmoertel (Chaplain)
on Oct 12, 2004 at 21:59 UTC ( #398709=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use File::Temp qw( tempfile );
    
    ...
                return $captured_output;
            }
        }
    
  2. or download this
        print STDERR "before redirection\n";
    
    ...
    
        print STDERR "after redirection\n";
        print "Saved output = $saved_output";
    
  3. or download this
        before redirection
        after redirection
        Saved output = during redirection
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (17)
As of 2015-07-28 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls