develooper Front page | perl.perl5.porters | Postings from March 2000

BEGIN..END and perlcc

Tom Christiansen
March 31, 2000 19:25
BEGIN..END and perlcc
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About