in reply to Re: pop an array
in thread pop an array
Strictly speaking the scalar is unnecessary. An array in a boolean context is true if it has elements and false if it's an empty list.
$ perl -le '@a = (); @b = (1); print "\@a" if @a; print "\@b" if @b;' @b
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: pop an array
by Vautrin (Hermit) on Feb 09, 2004 at 14:46 UTC | |
| |
|
Re: Re: Re: pop an array
by ambrus (Abbot) on Feb 10, 2004 at 14:21 UTC |