CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate: Re: [BillKSmith] Sorting Chunks of a file: Edit Log


Sep 2, 2011, 12:27 AM

Views: 4964
Re: [BillKSmith] Sorting Chunks of a file

Very nice methods using $/. However, with real data I can imagine Chris' being less efficient than my own method (slower compilation time) who uses 2 chunk wide regular expressions while sorting. Other things to note are the O/P probably wants to retain empty lines, Bill's code won't necessarily retain the original order if 2 graph names are the same since it will become controlled by "stuff". Also Bill's output won't be formatted properly in his current code. Just to nitpick beyond the example data!


(This post was edited by Zhris on Sep 2, 2011, 12:29 AM)

Edit Log:
Post edited by Zhris (Enthusiast) on Sep 2, 2011, 12:29 AM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives