> Still, testing definedness of an array is a very bad idea. > Try running this code first: > > @a = qw(a b c); > > and now you'll see, the array will be defined (and empty).
Hmm, i get "defined: yes" and "size: 3" ...
@a = qw/a b c/; printf "defined: %s\nsize: %d\n" , defined @a ? 'yes' : 'no' , scalar @a ;
... what did i miss?
In reply to Re^3: if (defined @arr) problem
by parv
in thread if (defined @arr) problem
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |