Front page | perl.perl5.porters |
Postings from October 2004
optimization idea
Thread Next
From:
David Nicol
Date:
October 21, 2004 15:11
Subject:
optimization idea
Message ID:
934f64a2041021151061376dfd@mail.gmail.com
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
example:
sub statename{
my $name = 'david';
return "hello my name is $name";
}
--
David L Nicol
transportation infrastructure technology contracting since 2002
Thread Next
-
optimization idea
by David Nicol