http://www.perlmonks.org?node_id=1018220


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