in reply to Exit With Line Number

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