in reply to Optimizing Perl Code - single versus double quotes really that important?

Hi, Single quoted strings for eg 'This is PERL' 'This is ${name}' in PERL are treated as literal strings. NOTE : The ${name} variable is treated as a literal string. Double quoted strings for eg "This is PERL" "This is ${name}" in PERL are also treated as strings but INTERPOLATES the ${name} variable. Hope this answers your question. - Shankar.
  • Comment on Re: Optimizing Perl Code - single versus double quotes really that important?

Replies are listed 'Best First'.
Re^2: Optimizing Perl Code - single versus double quotes really that important?
by Anonymous Monk on Oct 30, 2013 at 10:49 UTC
    Even though it's a really old post. I'd like to point out that this is not the topic which is being discussed here. The thing is we are trying to figure out if double quotes take up more resources. For instance if you use "" For every string. And replace them with '' would that make the script faster?

      So what happened when you tried it? I suggest you either read the existing replies and if still curious actually test your script.