Dr. Poo said:

> This worked perfectly. Why the hell havn't i ever seen INIT before?

You haven't read perl5005delta?  INIT is still fairly new - CHECK is even
newer.  Their initial purpose was to help the compiler.

perldoc perlmod for the gory details.

> One more thing though. In my code, i *HAD* BEGIN and END preceded by the
> sub keyword...Would that have any ill effect to the program?

None whatsoever.

> had this --
>       sub BEGIN

> In your code you have something like this (the {}'s are different)
>       INIT

> So i then decided, hmm... i guess i don't need them on any of the
> "pre-processor" directive. And now i have this,
>
>       BEGIN

> Any reason why to do one over the other?

Personal preference.  The desire for brevity.  Lack of disk space.  Dodgy
"s" on your keyboard.  Don't like too much SHOUTING.  ;-)

The C<sub> is optional and most people tend to leave it out.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to