talk2kvj has asked for the wisdom of the Perl Monks concerning the following question:
thanks in advance.
foreach $item (@results) { @line=split/,/, $item; $seen{$line[1]}="0"; #$seen{$item}=0; #print "LINE 1 $line[1]\n"; } foreach $item (@results) { @line=split/,/, $item; if ($line[0] =~ /1|6|7|8|9|5/) { &integrate; sub integrate { %matching=(); if ($line[0]=~/6|7|8|/) { $overlapc=$line[1]; foreach $itemi (@eresults) { @linei=split/,/, $itemi; if ($linei[1] eq $line[1]) { @matchone=split/ /, $linei[2]; $lengthandn=$line[4].',', $line[5]; ##error here--- Useless us +e of array element in void context--can u please tell me what this li +ne does. $matching{$matchone[0]}="$lengthandn"; $matching{$matchone[1]}="$lengthandn"; #$seenclone{$matchclone[1]}="1"; #print "678 line 1 $line[1] Length $lengthandn matchclone $matchclone +[1] m0 $matchclone[0]\n"; } }
20040527 Edit by castaway: Changed title from 'newbie- help with a piece of code'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help resolve Useless use of array element in void context warning.
by Zaxo (Archbishop) on May 26, 2004 at 19:57 UTC | |
by talk2kvj (Novice) on May 26, 2004 at 20:06 UTC | |
|
Re: Help resolve Useless use of array element in void context warning.
by BrowserUk (Patriarch) on May 26, 2004 at 19:55 UTC | |
|
Re: Help resolve Useless use of array element in void context warning.
by pbeckingham (Parson) on May 26, 2004 at 20:05 UTC | |
|
Re: Help resolve Useless use of array element in void context warning.
by Trag (Monk) on May 26, 2004 at 19:54 UTC |