My recollection - which may be wrong - is that in Perl 5
there is no real difference between single and double
quotes. At compilation it figures out whether there is
any interpolation.
In which case the difference between using double and
single quotes is basically irrelevant. Use whichever
one you find clearer. | [reply] |
| [reply] |
| [reply] |
I meant, obviously, that there is no performance difference
when you are not using interpolation. Of course there
is a difference in what will happen if you have $foo
between the quotes. Every beginner learns that fairly
early. But in terms of performance the difference between
'hello' and "hello" comes entirely down to how fast Perl
parses the string and figures out that there is no
interpolation.
| [reply] |