Re: logic not being able to score last element in the array

2010-05-07 Thread iinfer
On May 5, 1:10 pm, rbwohlfa...@gmail.com (Robert Wohlfarth) wrote: > On Tue, May 4, 2010 at 8:39 PM, iinfer wrote: > > # OPEN THE KEY > > > my @key=(); > > my @score_key=(); > > sub key{ > >    my $inFile = 'key.csv'; > >    open(IN, $inFile) or die "open $inFile: $!"; > >   �...@key=split(',',);

Re: logic not being able to score last element in the array

2010-05-05 Thread John W. Krahn
iinfer wrote: Hi, Hello, I'm new to perl but very enthusiastic about it. I'm having an issue with the following code. The task: two arrays one with a key "key" and one with responses from a form "responses". The idea is that each value in the responses array will be compared to key; if the

Re: logic not being able to score last element in the array

2010-05-05 Thread Robert Wohlfarth
On Tue, May 4, 2010 at 8:39 PM, iinfer wrote: > # OPEN THE KEY > > my @key=(); > my @score_key=(); > sub key{ >my $inFile = 'key.csv'; >open(IN, $inFile) or die "open $inFile: $!"; >@key=split(',',); >@score_key=shift(@key); >return @key; > } > Is it possible that the last va