Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: capturing the output of eval()

by damian1301 (Curate)
on May 09, 2001 at 20:21 UTC ( #79150=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN{
        open(STDOUT,">stdout.log")||die"$!";
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    # I love ar0n :)
    my $thing = do { local @ARGV = "foo.txt"; <> };
    print $thing;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2015-01-27 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (200 votes), past polls