Help for this page

Select Code to Download


  1. or download this
    while (my $line =<FILE>) {
        my ($one,$two,$three,$four,$five) = split "\t",$line;
        if ($three eq $checkthree) {
    ...
            last;
        }
    }
    
  2. or download this
    my $matched;
    while (my $line = <FILE>) {
        my ($one,$two,$three,$four,$five) = split "\t",$line;
    ...
    unless ($matched) { # this is like the else
        print "<p>If I put the else statement in it ignores the fact that 
    +the parameters match - and comes here!  (But I don't know why).</p>";
    }