Re: sorting by data

2001-10-30 Thread Jeff 'japhy' Pinyan
Ovid started a discussion about his reply to this post, and I made a reply, and he suggested I post it. To save some bandwidth, here's the URL: http://www.perlmonks.org/index.pl?node_id=122028 -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother

Re: sorting by data (fixed!)

2001-10-29 Thread Curtis Poe
My sincerest apologies to everyone for resending this (again!). Apparently, yahoo's "spell check" function interpolates escaped characters, thus rendering my code a pile of junk. I think I've fixed this. Again, sorry for the confusion and the inadvertent spam :( --- Roy Peters <[EMAIL PROTEC

Re: sorting by data

2001-10-29 Thread Curtis Poe
Aack! My email client (mail.yahoo.com) has substituted all for the 'backslash' n's with literal newlines, thus making my code virtually unreadable. I hope this hasn't happened to anyone else, or what you read below may be very confusing. --- Curtis Poe <[EMAIL PROTECTED]> wrote: > --- Roy Pet

Re: sorting by data

2001-10-29 Thread Curtis Poe
--- Roy Peters <[EMAIL PROTECTED]> wrote: > hi, > > I have the following string > > $a = > "buy 10/23/01 100 12.625 50 25.25 > buy 10/25/01 100 12.625 50 25.25 > buy 09/1/01 100 12.625 50 25.25 > buy 1/23/01 100 12.625 50 25.25 "; > > I would like to sort this by the date (ie the se

sorting by data

2001-10-29 Thread Roy Peters
hi, I have the following string $a = "buy 10/23/01 100 12.625 50 25.25 \n buy 10/25/01 100 12.625 50 25.25 \n buy 09/1/01 100 12.625 50 25.25 \n buy 1/23/01 100 12.625 50 25.25 \n"; I would like to sort this by the date (ie the second field) in the above string. So it looks like this: $