Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: a Couple of questions!

by Nik (Initiate)
on Sep 20, 2003 at 14:49 UTC ( #292859=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-12-03 23:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?