At 03:53 PM 6/7/01 -0400, Pete Emerson wrote:
>Respectfully, I disagree with this:
>
>Peter Scott wrote:
>
> > They're bad mainly because they suggest that the author doesn't understand
> > Perl well. So if I see code like that, my spidey sense starts tingling and
> > I wonder how good the code is. Why would someone type unnecessary quotes
> > unless they were confusing Perl with the Bourne shell, in which case they
> > may well have made some real mistakes?
>
>A lot of the programming that I do requires that I do stuff like:
>print "The name of the user is $username, and he is $age years old.\n";
Nonono, we are not in disagreement. I was specifically and solely
referring to the use of redundant quotes when their only contents are a
scalar variable. A Bourne Shell programmer has reason to do that; a Perl
programmer does not. If there's something else between the quotes, as in
your example the quotes are not unnecessary.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com