[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Finding the length of the longest string




Steven Lembark wrote:
> John Porter wrote:
> > @a[ map { length } @data ] = ();
> > print $#a;
> 
> run time -- and memory use -- may depend heavily on the string
> lengths being tested (e.g., try it with /vmunix...).

Sure.  This solution was supposed to be "fun", not for production
deployment.  Sorry for any confusion.  ;-)

John Porter


==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org