in reply to Some suggestions on coding style - a chance to critique
I'm a beginner at Perl too, so I'm not sure if my suggestions are quite relevant. However, I was surprised to see this sort of code:
my $redirect = "http://www.yoursite.com"; my $sendmail = "/usr/sbin/sendmail"; my $subject = "Form Submission Results";
I have always thought that I should avoid double quoted strings in expressions like these, because they take longer to parse (Perl has to do various substitutions, right?). So I would use single quoted strings in these examples. Please correct me if I am wrong, as I would be interested to read some discussion about this.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Some suggestions on coding style - a chance to critique
by staunch (Pilgrim) on Jun 26, 2002 at 15:08 UTC | |
Re: Re: Some suggestions on coding style - a chance to critique
by emilford (Friar) on Jun 26, 2002 at 15:03 UTC | |
by thelenm (Vicar) on Jun 27, 2002 at 16:46 UTC |
In Section
Meditations