Help for this page

Select Code to Download


  1. or download this
    perl -nE '$count{$1}++ while /\b(the|hi|linux)\b/ig; END{say "$_ => $c
    +ount{$_}" for keys %count}' filename.txt
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    print "$_ => $count{$_}\n" for keys %count;