Help for this page

Select Code to Download


  1. or download this
    $totalcount += (split(/ /) - 1);
    
  2. or download this
    $totalcount += split(' ');
    
  3. or download this
    #!/usr/bin/perl -n
    while (m/\w+/g) { $count++ }
    END { print "count: $count\n" }