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

Re: [FWP] Testing list?



On Wed, Jan 05, 2000 at 07:21:21PM +0000, Peter Haworth wrote:
> John Porter wrote:
> > Uri Guttman wrote:
> > > >>>>> "JP" == John Porter <jdporter@min.net> writes:
> > >   JP>     ( $a, $b, @c ) ||= ( 1, 2, 3, 4, 5 );
> > > 
> > > yecch!! that implies the || is applied to each member on the left side
> > > and matching with the right side. 
> > 
> > Huh?  
> >      ( $a, $b, @c ) ||= ( 1, 2, 3, 4, 5 );
> > would be the same as
> >      ( $a, $b, @c ) or
> >      ( $a, $b, @c ) = ( 1, 2, 3, 4, 5 );
> 
> But ($a,$b,@c) is always true!

  DB<1> x ($a, $b, @c) ? 'true' : 'not true'
0  'not true'

Ronald

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