Re: removing element of array
From: Andrew Gaffney (agaffney_at_skylineaero.com)
Date: 05/15/04
- Next message: Charles K. Clarkson: "RE: removing element of array"
- Previous message: Charles K. Clarkson: "RE: removing element of array"
- In reply to: Charles K. Clarkson: "RE: removing element of array"
- Next in thread: Charles K. Clarkson: "RE: removing element of array"
- Reply: Charles K. Clarkson: "RE: removing element of array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 14 May 2004 20:01:38 -0500 To: "Charles K. Clarkson" <cclarkson@htcomp.net>
Charles K. Clarkson wrote:
> Andrew Gaffney <agaffney@skylineaero.com> wrote:
> :
> : I tried to write a small test script to figure this out,
> : but I can't get anywhere. I used array references in my
> : test program, because I need to pull out an element from
> : an array through a ref and assign the result back to the
> : same array ref.
>
> I don't understand what result you want to assign to
> the original array ref. Give us an example of what you want
> to end up with and we can get you there.
>
> Starting with this:
>
> : my $array1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];
>
> End up with:
>
> $array1 = ???
> $array2 = ???
> $array3 = ???
I was just using those as temporary variables. Basically, I want to end up with
an array that is [0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15] (missing
the 7th element in this case). I'm just trying to figure out how to remove an
arbitrary element from an array and not leave an empty space.
-- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548
- Next message: Charles K. Clarkson: "RE: removing element of array"
- Previous message: Charles K. Clarkson: "RE: removing element of array"
- In reply to: Charles K. Clarkson: "RE: removing element of array"
- Next in thread: Charles K. Clarkson: "RE: removing element of array"
- Reply: Charles K. Clarkson: "RE: removing element of array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|