Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^6: How to grep exact string

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

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

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

Comment on Re^6: How to grep exact string
Replies are listed 'Best First'.
Re^7: How to grep exact string
by frozenwithjoy (Curate) on Nov 15, 2012 at 09:03 UTC
    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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-11-28 01:17 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls