turn warnings on, and you'll see things like
C:\dev\LOOSE>cat s
eval "
print 1;
INIT { print 2 }
END { print 3 }
BEGIN { print 4 }
CHECK { print 5 }
";
print "out of eval $@";
C:\dev\LOOSE>perl -Wl s
Too late to run INIT block at (eval 1) line 3.
4
Too late to run CHECK block at (eval 1) line 6.
1
out of eval
3
MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" |
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). |
** The third rule of perl club is a statement of fact: pod is sexy. |