in reply to Re: Aborting a module (return 1)
in thread Aborting a module
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Aborting a module (sub BEGIN)
by tye (Sage) on Oct 23, 2007 at 21:06 UTC |