in reply to help...separating strings into arrays!
use strict; my $file; open FILE, "<test.txt"; { local $/ = undef; $file = <FILE>; } close FILE; my @ab = split /ABC header line/, $file; my @array1 = split /\n/, @ab[0]; my @array2 = split /\n/, @ab[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: help...separating strings into arrays!
by cchampion (Curate) on May 18, 2002 at 10:18 UTC |