in reply to Re: Re: How Perl Optimize your code & some code TIPS ;-P
in thread How Perl Optimize your code & some code TIPS ;-P
In fact, they're identical. Perl rewrites this:my $bar = "hello, $foo";
into this:
my $bar = "hello, " . $foo;
$ perl -MO=Terse -e '$var = "String"; $var = "foo$var"'
$ perl -MO=Terse -e '$var = "String"; $var = "foo" . $var'
Strip out the addresses (0x*) and do a diff. Almost the same :-)
Arjen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How Perl Optimize your code & some code TIPS ;-P
by diotalevi (Canon) on Jan 26, 2003 at 16:49 UTC |