Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    $count++ while /a/g;
    
    print "$count\n";
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    my $count =()= /a/g;
    
    print "$count\n";