jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
So, for example, if test requests something from a database. The request can return nothing (no match found inside the database), or something went wrong.....my @a = &requestDB(..........) ; if ( defined @a) { } else { .... }
2006-01-21 Retitled by planetscape, as per Monastery guidelines
Original title: 'sub retruns array or empty array'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sub returns array or empty array
by holli (Abbot) on Jan 20, 2006 at 14:27 UTC | |
|
Re: sub returns array or empty array
by Fletch (Bishop) on Jan 20, 2006 at 14:11 UTC | |
by jeanluca (Deacon) on Jan 20, 2006 at 14:26 UTC | |
|
Re: sub returns array or empty array
by radiantmatrix (Parson) on Jan 20, 2006 at 15:23 UTC | |
|
Re: sub returns array or empty array
by ptum (Priest) on Jan 20, 2006 at 14:02 UTC | |
|
Re: sub returns array or empty array
by Sioln (Sexton) on Jan 20, 2006 at 15:03 UTC | |
|
Re: sub returns array or empty array
by jeanluca (Deacon) on Jan 20, 2006 at 14:14 UTC |