Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-01 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls