Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 avoiding work at the Monastery: (2)
As of 2014-10-02 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (41 votes), past polls