I thought that BEGIN { } was just magic subroutine, so a return just returns from the BEGIN block. My tests seem to confirm this:
sub BEGIN { print "hello\n"; return 1; } print "bye\n"
prints (wait for it...)
hello bye
In reply to Re^2: Aborting a module (return 1)
by FunkyMonk
in thread Aborting a module
by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |