Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

tieing STDIN & STDOUT using IO::Scalar for use inside an eval

by water (Deacon)
on Sep 11, 2004 at 21:16 UTC ( #390317=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # untested
    my $code = 'while (<>) { print; }'; # would typically be more interest
    +ing
    ...
          eval "$code";
        }
    # interesting stuff should be in output here
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://390317]
Approved by Corion
Front-paged by bart
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2021-01-25 15:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?