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 mo
From: Paul Lalli <[EMAIL PROTECTED]>
> On Jun 8, 7:33 am, [EMAIL PROTECTED] (Alok Nath) wrote:
> > What is the convention used to declare constants in perl ?
> > In C we declare constant type in Capital letters , not sure
> > how its in perl.
>
> There is a 'constant' pragm
On Jun 8, 7:33 am, [EMAIL PROTECTED] (Alok Nath) wrote:
> What is the convention used to declare constants in perl ?
> In C we declare constant type in Capital letters , not sure
> how its in perl.
There is a 'constant' pragma in Perl that you can use:
use constant PI => 3.
On Jun 8, 2007, at 1:33 PM, Nath, Alok (STSD) wrote:
Hi,
What is the convention used to declare constants in perl ?
In C we declare constant type in Capital letters , not sure
how its in perl.
Same convention:
use constant FOO => 3;
-- fxn
--
To unsubscribe, e-m