On Jun 12, 9:48 am, [EMAIL PROTECTED] (Jenda Krynicky) wrote:

> Everything has it's pros and cons.
>
> 1) The constant pragma is already installed with any Perl 5.004 or
> newer, while you have to install Readonly.pm

Agreed, but with the availability of CPAN.pm and the relative ease
with which modules are installed these days, this is less and less of
a concern.

> 2) The constants created by the constant pragma are actually known
> and believed to be constant in compiletime and the optimizer may use
> that knowledge.

These examples I had not considered.  Good information to have.

Thanks,
Paul Lalli


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to