[Israel.pm] Double Array

Georges EL OJAIMI g-ojaimi at cyberia.net.lb
Tue Feb 8 00:34:03 PST 2005


Hello,

I have a long file where in each line, 4 columns are separated by ";;;;"

i.e.
C1;;;;C2;;;;C3;;;;C4
D1;;;;D2;;;;D3;;;;D4
D5;;;;D6;;;;D7;;;;D8
.
.
.
.
G1;;;;G2;;;;G3;;;;G4

I have extracted the data but how can I list them in an array to be used
later:

 @all = split(/\n/);
 foreach $line (@all) {
  @all1 = split(/;;;;/);
   foreach $line1 (@all1) {
   print $line1."\n";
   }
  }

--
BR
Georges





More information about the Perl mailing list