in reply to Re: Warnings - Argument isnt numneric
in thread Warnings - Argument isnt numneric

gents,

Yes, @test does contain what I think it does. The actual file in question was once an excel i think, and i slit on whites[ace. I added the comma's in for clarity.

ill look up the splice docs first. I have Programming perl sitting here and i didnt see a thing in ti about the 3rd argument.

Failing that, I will investigate datetime module.
  • Comment on Re^2: Warnings - Argument isnt numneric

Replies are listed 'Best First'.
Re^3: Warnings - Argument isnt numneric
by ikegami (Patriarch) on Jul 08, 2008 at 09:30 UTC
    moritz is right. To insert the value in $new_day before the 4th element of @test, you need
    splice(@test, 3, 0, $new_day);

    It reads as: "Replace 0 elements of @test starting at index 3 with the single value $new_day". See splice.

      Ikegami, moritz

      Many many many thanks. Cracked it. Very much appreciated