Re: Declaring constants in perl

2007-06-12 Thread Paul Lalli
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

Re: Declaring constants in perl

2007-06-12 Thread Jenda Krynicky
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

Re: Declaring constants in perl

2007-06-08 Thread Paul Lalli
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.

Re: Declaring constants in perl

2007-06-08 Thread Xavier Noria
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