Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^6: How to grep exact stringby ColonelPanic (Friar) |
on Nov 15, 2012 at 08:59 UTC ( [id://1003965]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|