Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re (tilly) 5: No excuses about not using CGI.pm

by chipmunk (Parson)
on May 04, 2001 at 01:41 UTC ( [id://77800]=note: print w/replies, xml ) Need Help??


in reply to Re: Re (tilly) 5: No excuses about not using CGI.pm
in thread variables not posting?

On the contrary, the warning does occur under perl 5.6.1 on Linux, as well as perl 5.6.0 and perl 5.7.1. Are you sure you had warnings turned on for all your tests?

The warning doesn't occur in 5.005_03 because the warning wasn't implemented until 5.6.0. :)

Anyway, this warning is actually produced at the end of the compile phase, after the entire script has been compiled:

warn "About to call\n"; mysub(1); warn "Called\n"; BEGIN { package Foo; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(mysub); sub mysub ($) { warn "mysub: @_\n" }; } BEGIN { warn("About to import\n"); Foo->import(); warn("Imported\n"); } CHECK { warn "Done compiling.\n" } INIT { warn "Running.\n" } __END__ About to import Imported main::mysub() called too early to check prototype at tmp.pl line 4. Done compiling. Running. About to call mysub: 1 Called

Replies are listed 'Best First'.
Re: Re: Re: Re (tilly) 5: No excuses about not using CGI.pm
by MeowChow (Vicar) on May 04, 2001 at 01:46 UTC
    Agh! Indeed I forgot to enable warnings. That was pretty damn stupid of me.
       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://77800]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found