Help for this page

Select Code to Download


  1. or download this
    my @matches = $data =~ m/and/;
    my $count = scalar @matches;
    
  2. or download this
      my $count=0;
      while ($data=~m/and/g) { ++$count }
    
  3. or download this
    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
    split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/