Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Using backticks with (mount):

by JP Sama (Hermit)
on Jul 18, 2000 at 22:10 UTC ( #23045=note: print w/replies, xml ) Need Help??

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! =)


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    |    205065726c204861636b6572
    I wear my Geek Code on my finger.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://23045]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-08-18 01:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found