Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by MeowChow (Vicar)
on May 04, 2001 at 01:37 UTC ( #77795=note: print w/ replies, xml ) Need Help??


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

Right, I was commenting on tilly's statement that reversing the order is a good way to silently ignore the prototype.

However, I wonder if the documentation in perlmod should be revised from:

A BEGIN subroutine is executed as soon as possible, that is, the moment it is completely defined, even before the rest of the containing file is parsed.
To something like:
A BEGIN subroutine is executed as soon as possible, that is, the moment it is completely defined, even before subsequent code is parsed, but after the code before it is parsed and compiled.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print


Comment on Re: Re: Re: Re (tilly) 3: No excuses about not using CGI.pm
Re: Re: Re: Re: Re (tilly) 3: No excuses about not using CGI.pm
by merlyn (Sage) on May 04, 2001 at 01:39 UTC
    I can't think of a time I would have expected it to be parsed before the code ahead of it is parsed. I mean, the compiler doesn't skip around willy-nilly in the source file!

    Are you familiar with languages where the parser skips around? And if so, where does it skip to without, uh, parsing the file? {shrug}

    -- Randal L. Schwartz, Perl hacker

      Well, the operative words were "parsed and compiled".
         MeowChow                                   
                     s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-09-20 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (153 votes), past polls