Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: line by line match on an array of strings

by ww (Bishop)
on Jan 09, 2008 at 14:13 UTC ( #661352=note: print w/ replies, xml ) Need Help??


in reply to Re: line by line match on an array of strings
in thread line by line match on an array of strings

May not be the OP's intent???

prints
do me a

Update (after what I judge to have been too many minutes of puzzling over this)

Still not clear why "a" matched (it'll come to me yet), but the obvious cure (IMO) is to anchor the match, thus

if(grep/^$line$/, @typedefs){


Comment on Re^2: line by line match on an array of strings
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2016-02-08 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (276 votes), past polls