develooper Front page | perl.perl5.porters | Postings from October 2004

optimization idea

Thread Next
David Nicol
October 21, 2004 15:11
optimization idea
Message ID:
when a lexical variable is not written to between getting assigned
from a constant and getting interpolated, replace the value in the
string at compile time


sub statename{
   my $name = 'david';
   return "hello my name is $name";

David L Nicol
transportation infrastructure technology contracting since 2002

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About