in reply to Re^3: Some Basic Help.
in thread Some Basic Help.
How do I then, get the data i want into the array?
use Modern::Perl open trained , 'D://ARP//libsvm-3.12//families//antioxidant//independe +nt.scale'; open predict , 'D://ARP//libsvm-3.12//families//antioxidant//testing.s +cale'; my $counter = 0; my $lol = 0; select trained; my @train = $_; while (<predict>) { #print $_; my $predict = $_; if (exists $train{$predict} { print $predict; $counter = $counter + 1 } } print $counter;
like this?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Some Basic Help.
by Jenda (Abbot) on Sep 25, 2012 at 13:12 UTC | |
by invaderzard (Acolyte) on Sep 25, 2012 at 13:34 UTC |
In Section
Seekers of Perl Wisdom