Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Customizing the 'die' funtion

by nvivek (Vicar)
on Apr 27, 2010 at 04:12 UTC ( #837014=note: print w/replies, xml ) Need Help??


in reply to Customizing the 'die' funtion

If you don't want to print the script name by die function.You try the following.

die "Message\n";

If you want the particular error message why die occurred,you use the following.

die "Message:$!\n";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://837014]
help
Chatterbox?
[erix]: No More Mr Nice Guy !
[erix]: (I remember that song being a hit - 1973, apparently)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-10-23 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (279 votes). Check out past polls.

    Notices?