Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: My habitual errors (are with open)by grinder (Bishop) |
on Apr 04, 2007 at 19:28 UTC ( [id://608358]=note: print w/replies, xml ) | Need Help?? |
I get a couple with open. These days, I've expunged globs from my file handling code, and now use lexicals exclusively. That is, I write:
as opposed to
so the mistake I find myself now making regularly is:
and I realise I've messed up and start the line over. Still, at least I catch that as I'm writing it. This is an improvement over the previous situation, where I would regularly write:
And not spot anything was amiss until I ran the code and the compiler complained about syntax errors. Some say that's progress... • another intruder with the mooring in the heart of the Perl
In Section
Meditations
|
|