The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I like code reviews. Good idea. (1) Since you have three SQL statements starting with identical text, I would create a subroutine for that part. Then for one of your SQL statements, you could type
(2) I like using PerlTidy. I use the Perl Best Practices .perltidyrc with it. This will help you apply ap1's suggestion above automatically. For example: becomes
without my having to type extra spaces. If I changed $watermelons to $pears, then Perl Tidy can respace it without me having to add or delete spaces manually. Several IDEs/editors have ways you can set it up to run Perl Tidy with a single command. (3) I also like Data::Alias. For example, you could have this line: alias my $musing_script = $scripts->{'musing'}->{'script'};After which, you can just type $musing_scriptinstead of having to use two levels of dereferencing. Just my ideas; use whatever suits you. In reply to Re: How's My Style Now?
by molecules
|
|