in reply to How can i take a file loaded into an array and split it up into different...

# @array should hold the info you read from the file, # preferably chomp()'ed my @new_array = (); foreach(@array) { push @new_array, split(':', $_); # Oops. Had @array instead of $_ +. Thanks Beatnik! }
  • Comment on Re: How can i take a file loaded into an array and split it up into different...
  • Download Code

Replies are listed 'Best First'.
Re: Re: How can i take a file loaded into an array and split it up into different...
by Beatnik (Parson) on Jan 27, 2001 at 13:42 UTC
    You mean push @new_array, split(':'); or at least push @new_array, split(':', $_);. Don't ya?

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.

      Oops, I sure do. Thanks, Beatnik!

      What was I thinking?!?  =)