Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: a Couple of questions!

by jonadab (Parson)
on Sep 20, 2003 at 14:40 UTC ( #292858=note: print w/replies, xml ) Need Help??

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$/
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://292858]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2023-02-03 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (24 votes). Check out past polls.

    Notices?