Help for this page

Select Code to Download


  1. or download this
    perl -E "say q(found ), $count=()=qq(abcdefab\ncdefa\nbcdef) =~ /a\n?b
    +\n?c/gm, q( [abc] occurences)"
    
    found 3 [abc] occurences
    
  2. or download this
     while ($line=<inputfile>){chomp $line; $string=$string.$line;}