in reply to Re (tilly) 3: No excuses about not using CGI.pm
in thread variables not posting?
Though I don't quite understand, if BEGIN blocks are executed before the rest of the containing file is parsed (so sayeth perlmod), why does this happen at all?mysub(1); BEGIN { package Foo; require Exporter; @ISA = qw(Exporter); @EXPORT = qw(mysub); sub mysub ($) { print "mysub: @_\n" }; } BEGIN { Foo->import(); } ## Output main::mysub() called too early to check prototype at C:\Projects\GPerl +\Test\g1.pl line 1. mysub: 1
MeowChow s aamecha.s a..a\u$&owag.print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re (tilly) 3: No excuses about not using CGI.pm
by merlyn (Sage) on May 04, 2001 at 01:09 UTC | |
by MeowChow (Vicar) on May 04, 2001 at 01:37 UTC | |
by merlyn (Sage) on May 04, 2001 at 01:39 UTC | |
by MeowChow (Vicar) on May 04, 2001 at 01:42 UTC | |
Re (tilly) 5: No excuses about not using CGI.pm
by tilly (Archbishop) on May 04, 2001 at 01:11 UTC | |
by MeowChow (Vicar) on May 04, 2001 at 01:22 UTC | |
by chipmunk (Parson) on May 04, 2001 at 01:41 UTC | |
by MeowChow (Vicar) on May 04, 2001 at 01:46 UTC | |
by tilly (Archbishop) on May 04, 2001 at 01:25 UTC |