in reply to Re^3: unless/if
in thread unless/if
If you stick a "\n" on the end of the string you pass to die, you won't get a line number.
Apart from better readability and being a standard idiom, the nice thing about using die is you can catch it in a eval, making it possible to deal with exceptional conditions at a higher level.
In Section
Seekers of Perl Wisdom