#Perl performance

1 messages · Page 1 of 1 (latest)

flint jetty
#

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.

silver prairie
#

wait... weren't we in programming?

flint jetty