koti688 has asked for the wisdom of the Perl Monks concerning the following question:
And my sigData.txt contains 4 records lets say like below.open(TEST,"<$sigDataFile") || die("This file will not open!"); my $sigData = <TEST>; my @records = (); @records = <TEST>; close(TEST); my @keys; my @values; foreach my $rec(@records) { my ($key,$value)=split(/\=/,$rec); push @keys,$key; print @keys; push @values,$value; print @ values }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help regarding reading a file
by Gangabass (Vicar) on Apr 02, 2009 at 12:32 UTC | |
by koti688 (Sexton) on Apr 02, 2009 at 12:36 UTC | |
|
Re: help regarding reading a file
by lakshmananindia (Chaplain) on Apr 02, 2009 at 12:37 UTC | |
| |
|
Re: help regarding reading a file
by Gangabass (Vicar) on Apr 02, 2009 at 13:46 UTC |