Re: [FWP] sorting text in human-order

2001-01-04 Thread Piers Cawley
Piers Cawley <[EMAIL PROTECTED]> writes: > "David L. Nicol" <[EMAIL PROTECTED]> writes: > > Marc Lehmann wrote: > > > > > > On Sat, Dec 30, 2000 at 05:31:29AM +, "David L. Nicol" ><[EMAIL PROTECTED]> wrote: > > > > I do not know exactly what the perl5 default sort heuristic is, > > > > asid

Re: [FWP] sorting text in human-order

2001-01-04 Thread David Cantrell
On Thu, Jan 04, 2001 at 09:28:26AM +, Piers Cawley wrote: > And for 'proper' library type sorting (assuming all works are in > English) we should really be doing something like: > > require Lingua::EN::Numbers; > s/(\d+(?:\.\d+))/Lingua::EN::Numbers->($1)->get_string/eg; > > since i

Re: [FWP] sorting text in human-order

2001-01-04 Thread Piers Cawley
David Cantrell <[EMAIL PROTECTED]> writes: > On Thu, Jan 04, 2001 at 09:28:26AM +, Piers Cawley wrote: > > > And for 'proper' library type sorting (assuming all works are in > > English) we should really be doing something like: > > > > require Lingua::EN::Numbers; > > s/(\d+(?:\.\d

[]->isa('Foo') to not throw exceptions

2001-01-04 Thread Piers Cawley
Did we do this one already? I have an embarrassingly large amount of code that has to do Cisa('Foo') }>, or Ccan('Bar') }> because there is a chance that C<$foo> is an unblessed reference. I would use UNIVERSAL::can directly, but I have some code (a container/decorator class) that messes with is

Re: [FWP] sorting text in human-order

2001-01-04 Thread Glenn Linderman
David Cantrell wrote: > And in any case, I can think of three different ways of saying 1821 in > English alone. > > One thousand eight hundred and twenty one > One thousand eight hundred twenty one > Eighteen hundred and twenty one > > As far as *I* am concerned, the middle one is wrong (although