After searching around PM for a while today, it seems the most common way to do this is by using:
however, there are moments where that is inconvienient (I'm not lazy, just efficient--OK, so I am lazy). What are other ways to ensure that I write my code right the first time, to avoid this error?if (defined $value) { ..... }
xiexie,
melguin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: on to better coding (no uninitialized values)
by Masem (Monsignor) on Aug 23, 2001 at 21:05 UTC | |
by echo (Pilgrim) on Aug 23, 2001 at 21:16 UTC | |
by ichimunki (Priest) on Aug 23, 2001 at 23:56 UTC | |
|
(dws)Re: on to better coding (no uninitialized values)
by dws (Chancellor) on Aug 23, 2001 at 22:31 UTC | |
|
Re: on to better coding (no uninitialized values)
by dragonchild (Archbishop) on Aug 23, 2001 at 21:03 UTC | |
by melguin (Pilgrim) on Aug 23, 2001 at 21:11 UTC | |
|
Re: on to better coding (no uninitialized values)
by Maclir (Curate) on Aug 23, 2001 at 22:16 UTC |