Casey West <[EMAIL PROTECTED]> said something to this effect on 01/24/2002:
> On Thu, Jan 24, 2002 at 06:11:33PM +0000, Simon Wilcox wrote:
> :Should there be a .empty operator that returns true is empty where empty
> :means var is either null or undefined ?
> 
> We already have something that *should* do this.  .defined().
> 
> Just as in Perl, where defined(@foo) will only return true if @foo has
> elements.  Problem is, array.defined doesn't do this correcty yet.

$ perl -wle 'my @foo = (); print defined @foo'
defined(@array) is deprecated at -e line 1.
         (Maybe you should just omit the defined()?)

perl >= 5.6.0

(darren)

-- 
It is the unbelievers that are the religious fanatics. A man does
not protest and preach that the sun rises in the east. He already
believes it. It is the unbeliever who must do this in order that
others validate the unbelievers faith.


Reply via email to