in reply to Re^3: if (defined @arr) problem
in thread if (defined @arr) problem
Well, apparently that wasn't clear, so here is the whole current script, as I see it.
#! /usr/bin/perl @a = qw/a b c/; @a = test(); printf "defined: %s\nsize: %d\n" , defined @a ? 'yes' : 'no' , scalar +@a ; sub test { return () ; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: if (defined @arr) problem
by parv (Parson) on Dec 15, 2005 at 18:42 UTC |