For completeness, add die "$file: $!"; # for example which exits unless caught by a __DIE__ handler.
I rarely embed an exit(), favoring die() instead.
In reply to Re: How to end a Perl script
by dws
in thread How to end a Perl script
by belize
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |