The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.perl.misc
From: kate_no_spam@for_me_chiso.com (Kate)
Date: 1999/05/28
Subject: Re: Incrementing a value in a slice
Greg Bacon <gba...@cs.uah.edu> wrote in <7imcj5$jh...@info2.uah.edu>:
>In article <8DD46B23CXXkat...@news.chiso.com>, If I do it this way, I'm still not sure how to count how many times an > kate_no_spam@for_me_chiso.com (Kate) writes: >: I basically want to read through a text file line by line, place >: each unique line in an array. When I hit a duplicate line, I want to >: increment a value in my array so I can keep track of how many times >: that line is duplicated. I'm not sure if I should be using a List of >: Lists or a Hash for this (like I said, my exposure to Perl is limited). >Please read section four of the Perl FAQ. Pay careful attention when >Greg entry occurs. Extracting the unique entries isn't my problem, its incrementing my counter. Thanks for the help, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||