Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: a Couple of questions!

by Nik (Initiate)
on Sep 20, 2003 at 14:49 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found