in reply to Re^2: if (defined @arr) problem
in thread if (defined @arr) problem
@a = qw(a b c);
( i did meant the undef value, btw, and not the string 'undef' but it's true that my use of single quotes was indeed a bad idea !! )
I'll add something : suppose the OP wanted to undef arrays in a sub . I think I would pass the array as a reference, undef it in the sub and return the reference .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: if (defined @arr) problem
by davorg (Chancellor) on Dec 15, 2005 at 11:22 UTC | |
by secret (Beadle) on Dec 15, 2005 at 13:32 UTC | |
|
Re^4: if (defined @arr) problem
by blazar (Canon) on Dec 16, 2005 at 10:14 UTC |