If this fails it says "Sorry could not open $file on line 28" and I don't want that number there.open(LOG, "< $file") or die "Sorry could not open $file";
How can I make it into some error that prints just my error message if it can't open it? I was thinking doing an if/else and exit but I can't see how I could get it to work with an open().
Any ideas?
In reply to or DIE adding line number to error by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |