Help for this page

Select Code to Download


  1. or download this
    my $count = 0; 
    for ( @array ) {
      $count += s/PERL/Perl/g;
    }
    print $count;
    
  2. or download this
    my @numbers; 
    for ( 0 .. $#array ) {
      push @numbers, $_ if $array[$_] =~ s/PERL/Perl/g;
    }
    print join ', ', @numbers;