Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Why is the following instance of Matching using an array element not working

by johngg (Abbot)
on Aug 08, 2012 at 22:35 UTC ( #986379=note: print w/ replies, xml ) Need Help??


in reply to Why is the following instance of Matching using an array element not working

A bit of a stab in the dark without seeing a sample of your data files but, do you need to chomp off the line terminator from each $line? If the text you wish to match is in the middle of the $record then the line terminator at the end of the pattern means you will never succeed.

I hope my guess is close to the mark and that this is helpful.

Cheers,

JohnGG


Comment on Re: Why is the following instance of Matching using an array element not working
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2015-07-28 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls