in reply to Re: Re: Things every perl programmer should know?
in thread Things every perl programmer should know?
For me, it's:
because that sodding warning has never caught anything for me that strict wouldn't have trapped sooner. The kicker is that fixing it requires jumping through very silly hoops to make it go away. ($foo = $foo = 1; anyone?) As for uninitialized - well, I don't get a warning onuse strict; use warnings; no warnings 'once';
I admit it's sometimes a little awkward to code around the uninitialized warning, but usually something like adding a || 0 or || '' or such does the trick just fine. And that kind of thing isn't silly, in fact I think it's clearer in intent in that I document via code that I explicitly expect undefs there.if ($foo) { ... }
Makeshifts last the longest.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re^3: Things every perl programmer should know? (disabled warnings)
by Juerd (Abbot) on Jun 04, 2003 at 23:31 UTC | |
by Aristotle (Chancellor) on Jun 04, 2003 at 23:39 UTC |
In Section
Meditations