|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^2: running string as perl script and pass into STDIN programaticallyby gideondsouza (Monk) |
| on Feb 17, 2013 at 08:41 UTC ( #1019119=note: print w/ replies, xml ) | Need Help?? |
|
I sort of have an approach, this is how I plan do things, do you see issues, (performance etc?) or any other flaws?
My issue is that if $code has an error, that error is printed into the dancer bash console, I want to capture it instead. UpdateI also tried using capture_exec from IO::CaptureOutput, but this time, I get the STDERR but STDOUT is instead printed onto the bash command line, if there was a success :( *sigh*. I did ($stdout, $stderr, $success, $ex) = capture_exec('perl', "$fname","$arg");
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||