Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by MyJeweledPerls (Initiate)
on Aug 10, 2012 at 19:19 UTC ( [id://986809]=note: print w/replies, xml ) Need Help??


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

You were right I need to match the fourth element against each of the records. I added the code you suggested and no value was returned I decided to do a check and I did this:

foreach my $records (@merged_array) { my @elements = split /,/, $records; print $elements[0];
The Output from this was:  "John Doe"John Doe"John Doe"John Doe"John Doe

I realized that some of the fields themselves had commas within and that I couldn't consistently get the field I wanted by "print18" in this case So back to the drawing board for the next few minutes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found