PerlBear has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way perhaps by means of some special variable or other process that can perl can tell me which line the program exited on without hard coding it into a preceding print statement?print "exit line 382\n"; exit;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Exit With Line Number
by Roy Johnson (Monsignor) on May 05, 2005 at 16:05 UTC | |
Re: Exit With Line Number
by davido (Cardinal) on May 05, 2005 at 16:09 UTC | |
Re: Exit With Line Number
by inman (Curate) on May 05, 2005 at 16:18 UTC | |
Re: Exit With Line Number
by shemp (Deacon) on May 05, 2005 at 17:08 UTC | |
Re: Exit With Line Number
by thundergnat (Deacon) on May 05, 2005 at 17:27 UTC | |
by revdiablo (Prior) on May 05, 2005 at 18:04 UTC | |
by thundergnat (Deacon) on May 05, 2005 at 19:26 UTC | |
Re: Exit With Line Number
by salva (Canon) on May 05, 2005 at 18:51 UTC |