in reply to 'no such file' when it's there.
As for other comments, first of all just don't include a return in your die and you get the line number. See the message you quote for an example. So you don't need to put it in your scripts, Perl does it for you, and will keep the line numbers correct after every edit to the script.
Secondly you don't need to track line numbers in files you are reading, Perl does it for you in the special variable $. (see perlvar).
Thirdly you are not consistently putting filenames in your error messages. That really is a good habit to get into.
And finally, I would personally get irritated with a script that told me, "DIE DIE DIE!!!". All caps means yelling to me. I am perfectly capable of seeing that you died. I don't particularly need to be yelled at while I am trying to fix it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re (tilly) 1: 'no such file' when it's there.
by jptxs (Curate) on Aug 31, 2000 at 08:00 UTC | |
by merlyn (Sage) on Aug 31, 2000 at 08:05 UTC | |
by jptxs (Curate) on Aug 31, 2000 at 08:13 UTC | |
by tilly (Archbishop) on Aug 31, 2000 at 14:17 UTC |