in reply to Re^2: question regarding "Tie" in Perl
in thread question regarding "Tie" in Perl
However, this implementation has advantage of using the tied variable as constant in a string which can be interpolated.
And the benefit of interpolating a compile-time constant into a string at runtime is?
use constant AVO => 6; ... print "The constant is " . AVO . "\n";
Or
printf "The constant is %d\n", AVO; print "The constant is ${ \AVO }";;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: question regarding "Tie" in Perl
by lightoverhead (Pilgrim) on Nov 04, 2013 at 20:31 UTC |