Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Passing argument into STDIN inside reval

by 7stud (Deacon)
on Feb 11, 2013 at 19:22 UTC ( #1018220=note: print w/ replies, xml ) Need Help??

in reply to Passing argument into STDIN inside reval

I don't think a string has a STDIN filehandle. After you eval the string, it becomes part of your program. Your program has a STDIN filehandle.

Although, you can perform IO on a string (using open).

So essentially I can reval some code and then pass it some known arg to its STDIN

How about using root to insert the input?

Comment on Re: Passing argument into STDIN inside reval

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2015-11-26 10:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls