Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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


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.



Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://774274]
[atcroft]: Lady_Aleena: I found the L<name|section> syntax, which describes linking to a perl manual page, and L<text|url> to link to a web page. The reason I asked was because I was on looking at a module,
[atcroft]: and it referred to several other modules, but the links went to I found that a bit of a surprise, and it got me wondering if there was a "standard" way to link to other modules in the documentation on CPAN.
[Lady_Aleena]: atcroft. maybe look at raw PODs. There is also L<foo|http://foo. com> and some might be linking directly to meta::cpan.
[Lady_Aleena]: Oops, didn't read the L<text|url> right.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2017-05-27 03:56 GMT
Find Nodes?
    Voting Booth?