Front page | perl.perl5.porters |
Postings from March 2000
BEGIN..END and perlcc
From:
Tom Christiansen
Date:
March 31, 2000 19:25
Subject:
BEGIN..END and perlcc
Message ID:
11926.954559029@chthon
This simple program:
#!/usr/bin/perl -l
die "main program is dying\n";
BEGIN { print "BEGIN is running" }
CHECK { print "CHECK is running" }
INIT { print "INIT is running" }
END { print "END is running" }
doesn't at *all* work with any mode of perlcc and friends.
The failure states very, from empty output to failed compiles
to C code all over your screen. The result, however, does
not vary: no program is produced. The triggered functions
are not digested correctly by the code generators, and worse,
confuse them all completely.
--tom
-
BEGIN..END and perlcc
by Tom Christiansen