Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: a Couple of questions!

by bart (Canon)
on Sep 20, 2003 at 14:11 UTC ( #292857=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $count = () = $data =~ m/and/g;
    
  2. or download this
    my($next_word) = /and(?=\W*(\w+))/;
    
  3. or download this
    my @pairs = /(and)(?=\W*(\w+))/g;
    
  4. or download this
    $_ = 'foo and bar and baz went to the sea.';
    my @pairs = /(and)(?=\W*(\w+))/g;
    print join "#", @pairs;
    
  5. or download this
    and#bar#and#baz
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-12-08 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?