in reply to Perl "Constants"
Then these will be possible:*SOME_CONSTANT = \ 'the value';
but$h{$SOME_CONSTANT}; print "$SOME_CONSTANT\n";
would die with "Modification of a read-only value attempted at ... ".$SOME_CONSTANT = 'new value';
This is documented in perlmod under "Symbol Tables".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl "Constants"
by vessko (Initiate) on Feb 03, 2011 at 23:04 UTC |