paragkalra has asked for the wisdom of the Perl Monks concerning the following question:
I often use 'die' function to print a message and the abort.
But 'die' function by default also prints the script name and the line at which 'die' function was used. For EG:
[some message] at i_want_to_live.pl line 13I just want to print the message and abort. So how can I disable the script name and the line number that is printed with 'die' function.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Customizing the 'die' funtion
by kennethk (Abbot) on Apr 26, 2010 at 18:34 UTC | |
by educated_foo (Vicar) on Apr 26, 2010 at 21:48 UTC | |
by kennethk (Abbot) on Apr 26, 2010 at 22:56 UTC | |
by educated_foo (Vicar) on Apr 27, 2010 at 19:32 UTC | |
Re: Customizing the 'die' funtion
by moritz (Cardinal) on Apr 26, 2010 at 18:29 UTC | |
Re: Customizing the 'die' funtion
by zwon (Abbot) on Apr 26, 2010 at 21:47 UTC | |
Re: Customizing the 'die' funtion
by nvivek (Vicar) on Apr 27, 2010 at 04:12 UTC |