Help for this page

Select Code to Download


  1. or download this
    open my $fd, '<', $file or die "Can't open file: $!";
    while(my $line = <$fd>){
       # do stuff with line in $line
    }
    
  2. or download this
    my @fields = split /\t/, $line; # split the line on tabs
    # or 
    my( $threadnum ) = $line =~ /Thread-(\d+)/; # grab the digits followin
    +g Thread-