Help for this page

Select Code to Download


  1. or download this
    # perl -le'$cnt+=@{[m/\bhello\b/g]}for"aahello hello hello","bb heelo 
    +hello phello";print$cnt'
    3
    
  2. or download this
    # perl -nle'$cnt+=@{[m/\bhello\b/g]}}END{print$cnt' file