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

Re: Help with my regex

by Laurent_R (Canon)
on Jul 31, 2013 at 21:51 UTC ( [id://1047319]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $match = 'status|power';
    foreach (@data) {
       next if /NCQ/ or /Supported/;
       print $_ if /$match/i; 
    }
    
  2. or download this
    foreach (@data) {
       print unless /NCQ/ or /Supported/ or /^$/;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found