Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
good chemistry is complicated,
and a little bit messy -LW
 
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 chanting in the Monastery: (5)
As of 2014-04-21 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls