Help for this page

Select Code to Download


  1. or download this
    $data_file="learn.data";
    open(DAT, $data_file) || die("Could not open file!");
    @raw_data=<DAT>;
    ...
    foreach( @results ) {
        $record = $_;   
    }
    
  2. or download this
    open(I, $data_path);
    $found=0;
     while(<I>){
    ...
        }
    }
    close(I);