[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] GUSI and mime converting



On Wed, Sep 01, 1999 at 07:46:13PM -0700, Brian McNett wrote:
> Just offa da toppa my head:
> 
> > unless (@ARGV) {
> 
> you might explicitly test for defined:
> 
> unless defined(@ARGV)
> 
> Not that I really expect this to make any difference, mind you.
> 

In fact, it's almost certainly the wrong thing to do.  perlfunc
specifically warns against using defined() on aggregates -- i.e. entire
hashes or arrays -- because the behavior is counter-intuitive and subject
to change in a future version of perl.

Ronald

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org