I just thought there's a better way then mine to know what it returned, but if you suggest that what I did is good then what that's good enough for me.if ($x) { return $foo; # returns scalar }else{ return @bar; # returns array }
In reply to Re: Re: array or scalar, that's the question
by hotshot
in thread array or scalar, that's the question
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |