Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Welcome to the Monastery
 
PerlMonks  

Re: Assist with code

by si_lence (Deacon)
on Jun 24, 2009 at 07:14 UTC ( #774274=note: print w/ replies, xml ) Need Help??


in reply to Assist with code

Hi

What are you trying to do? From your code you just read in both files and print the lines in the second one that are not present in the first. But you talk about "add or append" and I don't see where you want to add or append the lines to.

Also if you just want to keep track of the lines already seen in the first file you don't need to use $i++ in the assigment to the hash, you can just put the value to a defined non-zero one (like '1').

It also helps readability if you use <code> .. </code> tags.

Cheers

si_lence


Comment on Re: Assist with code
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (17)
As of 2014-04-17 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (454 votes), past polls