powerman has asked for the wisdom of the Perl Monks concerning the following question:
$ perl -le ' print 1; INIT { print 2 } END { print 3 } BEGIN { print 4 } CHECK { print 5 } ' 4 5 2 1 3 $ perl -le 'eval " print 1; INIT { print 2 } END { print 3 } BEGIN { print 4 } CHECK { print 5 } "' 4 1 3
|
---|
Replies are listed 'Best First'. | |
---|---|
use warnings;
by PodMaster (Abbot) on Mar 28, 2004 at 13:56 UTC | |
Re: eval() and INIT{}
by calin (Deacon) on Mar 28, 2004 at 14:03 UTC | |
Re: eval() and INIT{}
by diotalevi (Canon) on Mar 29, 2004 at 03:47 UTC |