in reply to Array element deletion

Try this:
UPDATE:
@a=('a','b','c','a','b'); @a=reverse(@a); pop(@a); @a=reverse(@a); print @a'
i.e.:
shift(@a);
Hypnotic? :-)

Replies are listed 'Best First'.
Re: Re: Array element deletion
by halley (Prior) on May 04, 2004 at 13:36 UTC
    While you were hypnotized, you completely missed the point of the OP's question. Given a certain value, remove the first occurrence of it in an array.

    --
    [ e d @ h a l l e y . c c ]

      That's a generalization that may or may not be true. The op may want all but the last of a certain character removed, or the first (or all but the last) of every duplicated character.