Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-12-08 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?