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:
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:
If anyone could help me to solve this problem, I'ld be really gratefull!
Thanks a lot!
- jpsama
But the answer to the "print $example;" was an "illegal check" message!$example = `mount`; $example = $! if $!; print $example;
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:
And the "print $example;" returned the expected answer, but the "print $error;" returned the same "illegal check" message.$example = `mount`; $error = $! if $!; print $example; print $error;
If anyone could help me to solve this problem, I'ld be really gratefull!
Thanks a lot!
- jpsama
Back to
Seekers of Perl Wisdom