[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: exists $foo[7] and delete $foo[7]



On Thu, Jan 13, 2000 at 01:17:27PM -0500, Sam Tregar wrote:
> On Thu, 13 Jan 2000, Ronald J Kimball wrote:
> 
> > If you want to use delete() and exists() on arrays, you really want to use
> > a hash instead.
> 
> Exactly.  That's why this is necessary to support pseudo-hashes, which are
> basically arrays being treated as hashes.
> 

I don't believe that that is true.  Pseudo-hashes can be supported with
delete($pseudo->{key}) and exists($pseudo->{key}).  delete($pseudo[4]) and
exists($pseudo[4]) are a separate functionality.

Ronald


References to:
Ronald J Kimball <rjk@linguist.dartmouth.edu>
Sam Tregar <sam@tregar.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]