P is for Practical | |
PerlMonks |
Re: Re: Re (tilly) 3: No excuses about not using CGI.pmby merlyn (Sage) |
on May 04, 2001 at 01:09 UTC ( [id://77778]=note: print w/replies, xml ) | Need Help?? |
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
|
|