in reply to Re: Deleting duplicate lines from file
in thread Deleting duplicate lines from file

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^3: Deleting duplicate lines from file
by blazar (Canon) on Feb 17, 2006 at 12:57 UTC

    It works nearly in the same exact way as the code you already asked about except that:

    1. the flow control is syntactically (but not logically!) different;
    2. it doesn't do a check on the actual strings, but on a checksum computed for them which gives a sufficient condition for two of them to be different. That is, if the checksums are different, then the strings will be different too, while the converse does not hold: different strings may have the same checksums (but we rely on the confidence that such occurrencies are rare enough), hence => my remarks

    Then you wrote:

    For example, I don't understand this line:
    my (@lines, %line_md5);

    Oh my! Please tell me you're joking!! I see that you have 204 writing as of now. That's quite surprising... maybe you're not really programming in Perl, but in some vaguely similar language. What is it precisely that you do not understand?

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: Deleting duplicate lines from file
by xorl (Deacon) on Feb 16, 2006 at 17:14 UTC

    my

    unless

    It looks like perldoc is down....so try these links:

    my

    unless (BTW does anyone know where perldoc.perl.org keeps the info about unless and other control structures?)

Re^3: Deleting duplicate lines from file
by turo (Friar) on Feb 16, 2006 at 19:31 UTC
    You hurt me ...
    program file
    thats enough? ....

    i recommend you to read some perl guide
    perl -Te 'print map { chr((ord)-((10,20,2,7)[$i++])) } split //,"turo"'
Re^3: Deleting duplicate lines from file
by Anonymous Monk on Feb 17, 2006 at 12:33 UTC
    So how much are you getting paid for this one? How much do we get?