Well, there is die, and also the __LINE__ identifier, or you may consider using the Carp module, for finer handling of error conditions.
__LINE__ is an identifier that always evaluates to the current line number in the script. So "print __LINE__, "\n"; would print the line number where the print function occurs.
I hope this helps.
Dave
In reply to Re: Exit With Line Number
by davido
in thread Exit With Line Number
by PerlBear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |