Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Perl Idioms Explained - @ary = $str =~ m/(stuff)/g

by tachyon (Chancellor)
on Sep 17, 2003 at 13:15 UTC ( #292107=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $data = 'stuff stuff stuff';
    $num = $data =~ s/(stuff)//g;
    print $num, $/;
    __DATA__
    3
    
  2. or download this
    $num = () = 'stuff stuff stuff' =~ m/(stuff)/g;
    print $num;
    __DATA__
    3
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2016-06-29 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (370 votes). Check out past polls.