Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!samsung!spool2.mu.edu!uunet!stephsf!wengland From: wengland@stephsf.stephsf.com (Bill England) Newsgroups: comp.lang.perl Subject: Re: Multi line, flat file, record reader ... Message-ID: <460@stephsf.stephsf.com> Date: 10 Jan 91 21:04:57 GMT References: <459@stephsf.stephsf.com> Organization: Stephen Software Systems, Inc., Tacoma WA Lines: 32 Oops, I forgot to change the comments after merging some of the functions together. The comments under "Routines:" should look more like this; # Routines; # Parse_Index, # Is used to find the set of lines that from # the indx to the file. When the file index # has been found the funcition returns 1 (TRUE). # # Parse_Rec, # Rtn_Last_Rec, # Are used to collect multiple lines of the data file # and retrun the record in an associative array. Just in case applications are not obvious, this library helps in parsing files where all of the record elements may not be on one line. In particular some word processors accept files of the format that these routines can process. I'd like to write a sort program that would sort files in this type format based upon a records field name. In the example for instance to sort by "CityStateZip". What would be a the fastest sorting method to use ? -- +- Bill England, wengland@stephsf.COM -----------------------------------+ | * * H -> He +24Mev | | * * * ... Oooo, we're having so much fun making itty bitty suns * | |__ * * ___________________________________________________________________|