[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 11:54:35AM -0800, "Gurusamy Sarathy" wrote:
> On Thu, 13 Jan 2000 12:36:51 MST, Tom Christiansen wrote:
> >>>Will delete allow for
> >>>    delete $a[100];
> >>>    print scalar @a;    # prints 0 ???
> >>Yes, that's what it does.
> >So, delete on an array doesn't actually do the same thing as
> >pop/splice/shift would.  I don't think that this won't confuse
> >people.  Do you not not think not either? :-)
> I think it would confuse people who are willingly/easily confused,
> yes.

Which is really true for almost anything perl. No point in looking back now.

mark

-- 
markm@nortelnetworks.com/mark@mielke.cc/markm@ncf.ca __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   |
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/


Follow-Ups from:
Nick Ing-Simmons <nick@ing-simmons.net>
References to:
Tom Christiansen <tchrist@chthon.perl.com>
Gurusamy Sarathy <gsar@ActiveState.com>

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