in reply to Re: System() or the like
in thread System() or the like

Sorry to spoil that, but I think if you present a solution, it should work:

running it gives me:

syntax error at C:\WINNT\Profiles\int5398\src\test\xx.pl line 9, near +"if $option " syntax error at C:\WINNT\Profiles\int5398\src\test\xx.pl line 19, near + "}"
The line while () { starts an endless loop.

$returned_result will be empty.

And even if it would contain something, it would be in reverse order.

Please test your code before posting.