home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!usc!wupost!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!news.cs.indiana.edu!umn.edu!seasnake.micro.umn.edu!moses
- From: moses@seasnake.micro.umn.edu (Matthew E. Moses)
- Subject: Clearing a list
- Message-ID: <1992Sep1.020252.1026@news2.cis.umn.edu>
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: seasnake.micro.umn.edu
- Organization: University of Minnesota, Computer Science
- Date: Tue, 1 Sep 1992 02:02:52 GMT
- Lines: 28
-
- Can anyone forward some hints on clearing a list? I was modifying one of the
- examples to load and sort a file. I wrote it as a subprocess and when it gets
- called the second time it tacks new items onto the list instead of replacing
- old ones. Here is a sample piece:
-
-
- while(<MAILLOG>)
- {
- select(MAILLOG);
- $username = $_;
- $name = $username;
- $name_list{$name} .= $username;
- }
- close(MAILLOG);
-
-
- Any tips are appreciated.
-
- *******************************************************************************
- * Matthew E. Moses * __O * "How many times do you *
- * U of Minnesota * _ \<,_ * hear it? It goes on all *
- * * (_)/ (_) * all day long everyone *
- * CIS Consultant * moses@mermaid.micro.umn.edu * knows everthing and no *
- * ACM Sys Admin * moses@donald.cs.umn.edu * one's ever wrong" *
- * Air Force ROTC * mmoses@epx.cis.umn.edu * -Show Don't Tell- by RUSH *
- *******************************************************************************
-
-
-