Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: How to grep exact string

by frozenwithjoy (Priest)
on Nov 15, 2012 at 08:43 UTC ( #1003960=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to grep exact string
in thread How to grep exact string

Ah yes! Good point. Thanks.

EDIT: But wait.... Your suggestion of grep { $_ eq $unique } @first_list_new isn't detecting any actual matches for me.

EDIT #2: Nevermind... tyop. er, typo.

Replies are listed 'Best First'.
Re^6: How to grep exact string
by ColonelPanic (Friar) on Nov 15, 2012 at 08:59 UTC
    It's not clear why this would be. grep {$_ eq $unique} should be exactly equivalent to grep /^$unique$/, as long as $unique doesn't have any regex metacharacters--and it doesn't appear to in the sample data.


    When's the last time you used duct tape on a duct? --Larry Wall
      Whoa, you are write. I had a typo. I left the //'s around $unique. Oops. Maybe that means it is bedtime for me!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003960]
help
Chatterbox?
[1nickt]: The Google-fu is strong with this one.
[1nickt]: I was looking at Best Buy since like the in-store return/repace plan ... but the 17" HP Envy they have is not this one ....
[1nickt]: May be brand new ... 0 reviews on the site.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-03-26 18:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.