in reply to Re (tilly) 2: decimal placement
in thread decimal placement

this is false. single quotes are literal quotes meaning do not interpolate ever. double quotes allow interpolation, though in programming perl they are also listed as "literal" they are literal w/ interpolation (pg. 41, Programming Perl 2nd ed.).

--caesium

capitalization takes away valuable keystrokes... my doctor recommends no more than 5x10^50th keystrokes per day

Replies are listed 'Best First'.
Re (tilly) 4: decimal placement
by tilly (Archbishop) on Mar 26, 2001 at 08:27 UTC
    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.