Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 exploiting the Monastery: (4)
As of 2016-10-25 05:28 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.