http://qs1969.pair.com?node_id=22947

JP Sama has asked for the wisdom of the Perl Monks concerning the following question:

While doing a CGI file that mount's and umount's devices in a linux computer, I tried to use:
$example = `mount`; $example = $! if $!; print $example;
But the answer to the "print $example;" was an "illegal check" message!
I looked really hard, but I didn't find the error, or something that would cause the error message.

My major doubt is that the "cgi" is working errr... "properly", but the error message insists to appear!
So, i did the test:
$example = `mount`; $error = $! if $!; print $example; print $error;
And the "print $example;" returned the expected answer, but the "print $error;" returned the same "illegal check" message.

If anyone could help me to solve this problem, I'ld be really gratefull!
Thanks a lot!

- jpsama