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
In reply to Re: Re: Re: How Perl Optimize your code & some code TIPS ;-P
by Aragorn
in thread How Perl Optimize your code & some code TIPS ;-P
by gmpassos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |