perlcc seems to be dropping BEGIN blocks entirely, that's the problem.
# foo.plx
BEGIN {
print "foo\n";
}
print "bar\n";
$ bleadperl foo.plx
foo
bar
$ perlcc foo.plx
$ ./a.out
bar
The result from the compiled program should be the same as the
original. For some reason the BEGIN block is getting dropped when the
program is compiled. That's a bug.
--
Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/
Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One
my anus yearns now
warm paste fills me happily
saturday morning
-- imploded