in reply to complaint: always testing defined()
The other thing to consider is why you have so many possible undefs; could you be initializing things, providing default values, using NOT NULL columns, etc. to avoid the possibility of undefs in some cases?if ( ($params->{root} || '') eq 'foo' )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: complaint: always testing defined()
by moritz (Cardinal) on Nov 02, 2007 at 11:01 UTC | |
by parv (Parson) on Nov 02, 2007 at 13:42 UTC | |
by Joost (Canon) on Nov 02, 2007 at 13:47 UTC | |
by parv (Parson) on Nov 02, 2007 at 13:55 UTC | |
|
Re^2: complaint: always testing defined()
by RaptorRex (Acolyte) on Nov 02, 2007 at 04:50 UTC |