Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Regex help

by PetaMem (Priest)
on Dec 11, 2012 at 11:46 UTC ( #1008283=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Regex help
in thread Regex help

See the specific grep-map code in my other answer. For this requirement, you would simply add a negative match to the grep block:

my @ids = grep { defined $_ && $_ !~ m{AA1X32ALFC60JT8} } map { match_ +id($_) } @lines_from_file;

Bye
 PetaMem
    All Perl:   MT, NLP, NLU


Comment on Re^3: Regex help
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2014-09-18 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (101 votes), past polls