Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Passing argument into STDIN inside safe.pm 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 safe.pm 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 safe.pm reval

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-10-23 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (127 votes), past polls