Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Help with my regex

by Laurent_R (Abbot)
on Jul 31, 2013 at 21:51 UTC ( #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
Node Status?
node history
Node Type: note [id://1047319]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-02-26 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (376 votes). Check out past polls.