in reply to
Re: Re (tilly) 3: No excuses about not using CGI.pm
in thread variables not posting?
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