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


in reply to Using backticks with (mount):

But, the return for:
$error = $! if $!; print $error;
should be the message error, but if an error occurred during the process, right?

At least, this was my intention...

btw, I am looking in the perlvar, as sugested, and I couldn't solve my doubt yet.

well, thank you! =)

-jpsama

Replies are listed 'Best First'.
RE: Re: Using backticks with (mount):
by Aighearach (Initiate) on Jul 19, 2000 at 08:08 UTC
    In brief-

    Don't look at the value of $! in the general case. Structure your error checking to only look at $! after detecting an error by other means. Usually that means after a call fails.

    Paris Sinclair    |    4a75737420416e6f74686572
    pariss@efn.org    |    205065726c204861636b6572
    I wear my Geek Code on my finger.