Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Using backticks with (mount):

by JP Sama (Hermit)
on Jul 18, 2000 at 22:10 UTC ( [id://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! =)

-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.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-24 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found