rocketperl has asked for the wisdom of the Perl Monks concerning the following question:
while (<FILE>) { chomp; ($first,$second)=split ("\t"); my @first_column= split '\n',$first; my @second_column=split '\n',$second; my $a=0; my $b=0; print "$first_column[$a]"; print "\t$second_column[$b]"; my $e=$second_column[$b]-$first_column[$a]; print "\t$e\n"; $a++; $b++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: unable to parse different rows in array
by hdb (Monsignor) on Jul 01, 2013 at 09:36 UTC | |
|
Re: unable to parse different rows in array
by marto (Cardinal) on Jul 01, 2013 at 09:34 UTC | |
|
Re: unable to parse different rows in array
by Laurent_R (Canon) on Jul 01, 2013 at 17:47 UTC |