|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: My first perl script is working, what did I do wrong?by marquezc329 (Scribe) |
| on Nov 08, 2012 at 22:20 UTC ( #1003005=note: print w/ replies, xml ) | Need Help?? |
|
Hello killersquirel11. Looks like you've already been given some full rewrites. I just figured I'd give you some smaller points to think about in the future.
if() vs unless() i.e. Multiple Variable Declaration can be broken down from:
to: my ($headerLine, $prtIndex, $shpIndex, $clrIndex, $sizIndex) = (-1) x 5; C style for loops like: Can be "Perl-ified" like:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||