in reply to Returning a Junction
That'd be improper. It is a perfectly sane thing for the module user to get back the list of useable cards and not for use in a boolean test. If you want to do a boolean test then the user should create the disjunction. Heck, do that right now in p5 if all you want is some equality tests: eqany().
if ( eqany( 'foo', available_cards() ) ) { ... sub eqany { $_[0] eq $_ && return 1 for $_[1] .. $_[$#_]; 0 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Returning a Junction
by pdcawley (Hermit) on Sep 04, 2003 at 07:17 UTC | |
|
Re: Re: Returning a Junction
by hardburn (Abbot) on Sep 04, 2003 at 13:45 UTC | |
by diotalevi (Canon) on Sep 04, 2003 at 15:04 UTC |