in reply to Re: Optimizing Perl Code - single versus double quotes really that important?
in thread Optimizing Perl Code - single versus double quotes really that important?
Speed-wise, I don't think it makes much difference
Speedwise, it makes no difference. They produce exactly the same code.
$ perl -MO=Concise,-exec -e'$x = qq{a $b c}' 1 <0> enter 2 <;> nextstate(main 1 -e:1) v 3 <$> const[PV "a "] s 4 <#> gvsv[*b] s 5 <2> concat[t3] sK/2 6 <$> const[PV " c"] s 7 <2> concat[t4] sKS/2 8 <#> gvsv[*x] s 9 <2> sassign vKS/2 a <@> leave[1 ref] vKP/REFC -e syntax OK $ perl -MO=Concise,-exec -e'$x = q{a }.$b.q{ c}' 1 <0> enter 2 <;> nextstate(main 1 -e:1) v 3 <$> const[PV "a "] s 4 <#> gvsv[*b] s 5 <2> concat[t3] sK/2 6 <$> const[PV " c"] s 7 <2> concat[t4] sKS/2 8 <#> gvsv[*x] s 9 <2> sassign vKS/2 a <@> leave[1 ref] vKP/REFC -e syntax OK
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Optimizing Perl Code - single versus double quotes really that important?
by DStaal (Chaplain) on Feb 05, 2009 at 18:21 UTC | |
by ikegami (Patriarch) on Feb 05, 2009 at 18:30 UTC | |
by DStaal (Chaplain) on Feb 05, 2009 at 18:45 UTC |