Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to grep exact string

by ColonelPanic (Friar)
on Nov 15, 2012 at 08:46 UTC ( #1003961=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach my $unique (@second_list_new)
    {
    ...
            print "newly in this $unique\n\n";
        }
    }
    
  2. or download this
        if (grep (/^\Q$unique\E$/,@first_list_new))
    
  3. or download this
         my @first_list_new = map { s/\s*$//m; lc $_ } <FIRST_LIST>;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2014-07-22 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (122 votes), past polls