Help for this page

Select Code to Download


  1. or download this
    while (my $line = <$fh>) {
        chomp $line;
    ...
        }
        }    
    }
    
  2. or download this
    my $rx_word = qr{ \b [[:alpha:]]+ \b }xms;  # a very naïve word!
    
    while (my $line = <$fh>) {
        exists $count{$_} and ++$count{$_} for $line =~ m{ $rx_word }xmsg;
        }