Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 contemplating the Monastery: (8)
As of 2014-12-22 00:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls