in reply to Optimizing Perl Code - single versus double quotes really that important?
Speed-wise, I don't think it makes much difference. (As has already been pointed out.) The fact that you could replace:
$info1 = "this is some sample stuff".$info_in."<br><br>"; print <<__ENDER__; $info1 . . __ENDER__
With:
print <<__ENDER__; this is some sample stuff $info_in <br><br> . . __ENDER__
Which then suggests this:
$info[1] = "this is some sample stuff $info_in <br><br>"; .. foreach my $outfo ( @info ) { print "$outfo\n"; }
Might be something you want to look at to do some cleanup...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optimizing Perl Code - single versus double quotes really that important?
by ikegami (Patriarch) on Feb 05, 2009 at 18:02 UTC | |
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 |