Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default duplicate removal

    ok, this is probably another easy question. does anyone
    know how to remove duplicates in a list of strings?

    basically, i have a list of newsgroup message subjects.
    sometimes people accidentally post twice, so i need to
    remove the dups.

    thx


    --------------------------------------------------------------------
    For free web access to newsgroups, please visit
    [url]http://www.coldmail.us/[/url]. Thanks
    --------------------------------------------------------------------


    ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    [url]http://www.newsfeed.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
    john62@electronmail.com Guest

  2. Similar Questions and Discussions

    1. Extension Removal
      Dear All, I hope that someone may be able to help me. I installed some extensions for DW recently to try them out and would now like to remove...
    2. [PHP] URGENT REMOVAL
      enough or mr Larry E. Ullman will kick some butt
    3. program removal
      How can I remove a program from one users account on xp without removing it from other users account?
    4. Pop Up ad REMOVAL
      Anyone, Please tell me how to eliminate these pop-up ads..............
    5. red-eye removal
      Ahem, irfanview's red-eye removal works very well. Free.... Cullinane wrote:
  3. #2

    Default Re: duplicate removal

    [email]john62@electronmail.com[/email] <john62@electronmail.com> wrote:
    > ok, this is probably another easy question.

    Common questions are grouped together, along with answers, in
    a document called a FAQ (Frequently Asked Questions).

    It is considered good manners to check the FAQ *before* posting
    to the newsgroup.

    > does anyone
    > know how to remove duplicates in a list of strings?

    perldoc -q duplicate

    "How can I remove duplicate elements from a list or array?"


    --
    Tad McClellan SGML consulting
    [email]tadmc@augustmail.com[/email] Perl programming
    Fort Worth, Texas
    Tad McClellan Guest

  4. #3

    Default Re: duplicate removal

    [email]john62@electronmail.com[/email] wrote:
    > ok, this is probably another easy question. does anyone
    > know how to remove duplicates in a list of strings?

    This is a FAQ:

    perldoc -q dupicate

    --
    Bob Walton

    Bob Walton Guest

  5. #4

    Default Re: duplicate removal

    [email]john62@electronmail.com[/email] wrote:
    > ok, this is probably another easy question. does anyone
    > know how to remove duplicates in a list of strings?
    The Fine Manual knows.
    Please check "perldoc -q duplicate":
    How can I remove duplicate elements from a list or array?

    jue


    Jürgen Exner Guest

  6. #5

    Default Re: duplicate removal

    On Sun, 13 Jul 2003 01:46:23 GMT, Bob Walton
    <bwalton@rochester.rr.com> wrote:
    >john62@electronmail.com wrote:
    >
    >> ok, this is probably another easy question. does anyone
    >> know how to remove duplicates in a list of strings?
    >
    >
    >This is a FAQ:
    >
    > perldoc -q dupicate
    Except that he might want to spell that "duplicate".

    Like the denizens of comp.lang.perl.misc, computers
    are notoriously picky about spelling things properly.

    ;-)
    Helgi Briem Guest

  7. #6

    Default Re: duplicate removal

    [email]john62@electronmail.com[/email] wrote in message news:<3f10af06_2@127.0.0.1>...
    > ok, this is probably another easy question. does anyone
    > know how to remove duplicates in a list of strings?
    >
    > basically, i have a list of newsgroup message subjects.
    > sometimes people accidentally post twice, so i need to
    > remove the dups.
    >
    > thx
    >
    >
    > --------------------------------------------------------------------
    > For free web access to newsgroups, please visit
    > [url]http://www.coldmail.us/[/url]. Thanks
    > --------------------------------------------------------------------
    >
    >
    > ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    > [url]http://www.newsfeed.com[/url] The #1 Newsgroup Service in the World! >100,000 Newsgroups
    > ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
    try:

    @UniqArray = grep(!$saw{$_}++, @DuplicateArray);
    JDeBaun Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139