"Joe Tseng" <[EMAIL PROTECTED]> writes:

> I was told we need to find a software package that can do various sorts 
> on ASCII files.  We were going to buy a package from Syncsort to do this 
> with Solaris 2.5.1 but the vendor wanted $14k because our Enterprise 3k 
> has 4 processors.  Our project manager just said to them "f*** you."
> 
> Now my question is: is there any way I can do this kind of thing with 
> Perl?  If so are there any pages that can help me with writing an app 
> that will do a binary or bubble or whatever other sort there is?  And 
> can Perl handle files containing millions of records?
> 
> It'd be nice if I can show management I can do just as well a job in 
> about an hour with freeware as compared with commercial software.  BTW 
> we are an NT house.


I agree with Matt Smith:

> The sort command does wonders.  Maybe you could give an example if sort
> will not handle your needs.

You certainly won't want a bubble sort for millions of records!
The 'quicksort' function is usually the best - and scales nicely over
multiple processors (if you make it). 

Perl does include sorting capability - I haven't used it.
You might try O'Reilly's "Learning Perl on Win32 Systems".

--
##############################################################
# Antonomasia   [EMAIL PROTECTED]                      #
# See http://www.notatla.demon.co.uk/                        #
##############################################################


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to