in reply to Refactoring Redux...

I haven't read this post closely, but, I kept noticing the escaping of double-quotes throughout each stage of transformation :
print "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\"\n";
I just recently started paying attention to qq and think I would clean this up as so:
print qq(<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"\n);

Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality

Replies are listed 'Best First'.
Re: Re: Refactoring Redux...
by hsmyers (Canon) on Dec 16, 2002 at 19:09 UTC
    Your are probably right---too many years of doing everything with double quotes I guess (plus a macro that does most of this for me<g>)...

    --hsm

    "Never try to teach a pig to sing...it wastes your time and it annoys the pig."
      Here is the example:
      my $x = 'hi there'; print qq(Ok now if you would only say "$x", I might acknowledge you \n +);

      Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality