jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
I have a spreadsheet (tab delimited) and I want to put the information from field in a certain row into an array, add more information to it, and then put it back! I thought I would be able to get the information from the required field with the following, but as a test I tried to print the field and nothing happened.
Could anybody point me in the right direction, please?my $checkthree = param('check'); open (DATA, "$data") || die "Couldn't get data"; @all=<DATA>; close (DATA); #Read each line of the data file foreach $line (@all){ $line=~s/\n//g; ($one,$two,$three,$four,$five,$six,$seven,) = split ('\t',$line);} if ($checkthree == $three) { last;} print "$four";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: isolate a filed from within a spreadsheet
by helgi (Hermit) on Nov 20, 2002 at 16:17 UTC | |
by jonnyfolk (Vicar) on Nov 20, 2002 at 18:42 UTC | |
|
Re: isolate a filed from within a spreadsheet
by hydo (Monk) on Nov 20, 2002 at 16:04 UTC |