Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Bug with Carp and $!/$?

by Kageneko (Scribe)
on Jul 10, 2003 at 17:34 UTC ( [id://273069]=note: print w/replies, xml ) Need Help??


in reply to Re: Bug with Carp and $!/$?
in thread Bug with Carp and $!/$?

Oh, I expected to get the value of $! (which I set to 10). The reason I set $? is that the 'die' manpage states:

Outside an "eval", prints the value of LIST to "STDERR" and exits with the current value of $! (errno). If $! is 0, exits with the value of "($? >> 8)" (backtick `command` status). If "($? >> 8)" is 0, exits with 255.

I was trying to make sure that $? would be non-zero, although it just occurred to me that I should've done something like: $? = (9 << 8) in order for that to work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found