Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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

by bart (Canon)
on Sep 17, 2003 at 10:15 UTC ( #292089=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    $num_matches_stuff = $str =~ m/(stuff)/g;
    @all_the_matches   = $str =~ m/(stuff)/g;
  2. or download this
    $str = "stuff stuff stuff";
    $num_matches_stuff = $str =~ m/(stuff)/g;
    print $num_matches_stuff;
  3. or download this
    $str = "stuff stuff stuff";
    while($str =~ m/(stuff)/g) {
        print "Got one!\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://292089]
[1nickt]: Wow. I had heard about the chips on HP cartriddges but not that issue. I rejected HP's equivalent laptop becuase of build quality, very plasticky keyboard. And I believe HP is the champon of bloatware, too.
[stevieb]: Perhaps my experience with HP is a bit different as I always bought the highest end models through business.
[Corion]: 1nickt: At least the machines that $work is introducing to replace the Lenovo T60 here do not inspire confidence with me

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (20)
As of 2017-03-27 13:31 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.