Re: Substring and Sort

2002-10-21 Thread david
Anthony Akens wrote: > I'm attempting to use the following code to read a file > in the format of: > > directory name:displayname > > I want to sort the list by the "displayname", looking > at the first letter for each display name in the file. > If it's unique, I want to print it. This should

Re: Substring and Sort

2002-10-21 Thread Larry Coffin
At 3:03 PM -0400 10/21/02, Akens, Anthony wrote: >I'm attempting to use the following code to read a file >in the format of: > >directory name:displayname > >I want to sort the list by the "displayname", looking >at the first letter for each display name in the file. >If it's unique, I want to prin

RE: Substring and Sort

2002-10-21 Thread Akens, Anthony
print $displayname; print "<\/a>\n"; } } - -Original Message- From: Larry Coffin [mailto:lc2002@;PointInfinity.com] Sent: Monday, October 21, 2002 2:53 PM To: Akens, Anthony; [EMAIL PROTECTED] Subject: Re: Substring and Sort At 3:03 PM -0400 10/21

Re: Substring and Sort

2002-10-21 Thread Michael Fowler
On Mon, Oct 21, 2002 at 04:32:27PM -0500, Akens, Anthony wrote: [snip] It looks like you forgot -w and use strict. > open (NAMES, $namefile) > or print "Could not open $namefile $!"; Do you really want to continue and read the file if the open fails? > while() > { > ($key, $value