Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Unique key identifer?

by lecb (Acolyte)
on Jun 28, 2014 at 12:41 UTC ( #1091548=note: print w/ replies, xml ) Need Help??


in reply to Re: Unique key identifer?
in thread Unique key identifer?

Thank you for your response. The 2 file structure is merely to mimic what I am trying to do for a more complicated program. I have to refer to another file which has for a particular "fruit", a + or -. From the information held in that file I then act on the data in the other file.

My files are 44,000 lines long and created from some hefty scripting way out of my control, so needs to be kept in this structure.

Will give this a go, thank you.


Comment on Re^2: Unique key identifer?
Re^3: Unique key identifer?
by Laurent_R (Parson) on Jun 28, 2014 at 19:10 UTC
    Yeah, I also thought that your problem was probably not about apples, cherries and bananas. The reason I removed the opening and reading of the first file is that it was not useful for the problem you described, since all needed information was in the second file. I hope my suggested code still helps you, and I am sure many monks, including myself, will be glad to help you if you provide a scenario closer to your actual problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2014-10-30 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls