Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Common Beginner Mistakesby Elias (Pilgrim) |
on Jan 27, 2001 at 16:15 UTC ( [id://54746]=note: print w/replies, xml ) | Need Help?? |
As a beginner, I made all of these mistakes and then some. Thank you chromatic for this excelent node, and dominus for the Red Flag papers. While forcing myself to rewrite a script to have them all use strict I came up with the following solutions which may be of benefit to others like me (for most of you this is way too trivial, but this is the voice of a beginner). To access a number of files in a loop construct, this was my initial attempt:
A common mistake, apparently, which turned out to be easy to avoid:
Another (double!) 'Red Flag' situation was this:
and solving it taught me a thing or two about hashes:
My script now runs under strict, and I'm proud of it ;-)
In Section
Tutorials
|
|