|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Re: Re (tilly) 3: No excuses about not using CGI.pmby merlyn (Sage) |
| on May 03, 2001 at 21:09 UTC ( [id://77778]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You got it in the wrong order. You can't execute a BEGIN block before you compile it, and you compile it in the order in the file. So you've compiled the lone mysub at the top, then you compile the first BEGIN block, then execute it, then compile the second BEGIN block, then execute it and OOPS! there's the problem.
Put the lone mysub at the bottom of the file, and it'll be all good. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||