in reply to How to create a "CONSTANT"
--Davesub CONST::TIESCALAR { bless \(my $v = pop), shift } sub CONST::FETCH { ${(shift)} } tie $x, CONST => 4; print "$x\n"; $x = 7; # run-time error
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to create a "CONSTANT"
by freddo411 (Chaplain) on Jun 09, 2003 at 20:52 UTC |