Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $_ = 'here the text goes';
    my @entries;
    print  scalar (@entries = split /\s+/, $_);
    
  2. or download this
    use strict;
    use warnings;
    ...
    $_ = 'here the text goes';
    my $count;
    print $count = $_ =~ s/\S+//g;