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

Re: [MacPerl] find value in array



On Tue, Oct 17, 2000 at 11:18:07PM -0700, Bruce Van Allen wrote:
> At 1:48 PM 10/17/00, Ronald J Kimball wrote:
> >
> >I still prefer returning '0 but true' to avoid this problem, the way some
> >of Perl's builtin functions do, rather than returning a reference.
> 
> Cool. The expression $list['0 but true'] works like $list[0] !!

Perl even goes so far as to special case the string '0 but true'; when it
is converted to a number, Perl does not produce an "argument is not
numeric" warning.


Ronald

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