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

Re: [FWP] Testing list?



>>>>> "PS" == Peter Scott <Peter@PSDT.com> writes:

  PS> I do take your point, but it isn't an argument for ||= on arrays being 
  PS> either undesirable or impossible, merely difficult.

what is wrong with just this:

	@a = ( 1,2,3 ) unless @a ;

very simple and clean. no need for ||= to work with arrays. note that i
like the idea of ?? as has been proposed since putting a defined in all
the time is more of a pain. i can't think of ever wanting ||= to do
this.

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe