RE: CONSTANTS in Perl

2003-03-17 Thread Jenda Krynicky
From: Tony Esposito <[EMAIL PROTECTED]> > ThanksI got this issue resolved. > One could also "resolve" the constant in a print statement like so: > > ... > print STDERR "ERROR 4: where is between @{[ > MIN_THRESHOLD ]} and @{[ MAX_THRESHOLD ]}.\n"; Yep. It's a shame that the Perl optimizer i

RE: CONSTANTS in Perl

2003-03-17 Thread Tony Esposito
TED] > -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 11:01 AM To: [EMAIL PROTECTED] Subject: Re: CONSTANTS in Perl From: Tony Esposito <[EMAIL PROTECTED]> > In C, you can define a constants - "variables" whose cont

Re: CONSTANTS in Perl

2003-03-17 Thread Jenda Krynicky
From: Tony Esposito <[EMAIL PROTECTED]> > In C, you can define a constants - "variables" whose contents can not > be changed. Is there any way to do this in Perl? There are some > variables I use that I would love to set as a constant. In case you really wanted them to be variables you may do thi

Re: CONSTANTS in Perl

2003-03-14 Thread Rob Dixon
Tony Esposito wrote: > In C, you can define a constants - "variables" whose contents can not > be changed. > Is there any way to do this in Perl? There are some variables I use > that I would love to set as a constant. > Hi Tony. Try this: use constant BUFFER_LENGTH => 64; more documentatio