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! }
|
|---|
| 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 | |
by bbfu (Curate) on Jan 29, 2001 at 09:08 UTC |