#Perl performance
1 messages · Page 1 of 1 (latest)
Yes, for example:
use constant PREFIX => "foo";
...
print $instance{PREFIX."bar"}
will substitute for PREFIX and also "optimize" the string concatenation at parse time.
What is will not do is optimize away the hash string key lookup.
wait... weren't we in programming?
No, we were in #mod-dev-discussion.