On Mon, 08 Dec 2003 08:51:14 -0800, "$Bill Luebkert"
<[EMAIL PROTECTED]> wrote:

> Why are you chopping filenames that start with , ?
> Shouldn't you be removing the , instead ?

Uhh ... sheer boneheadedness?

> You could just sort them and use the first (or last) element
> as the number (depending on sort order).
> 
>       my $nxtmsgnum = (sort { $a <=> $b } @msgnums)[-1];

Indeed, that was my next pass, once I decided to ignore the ","
filenames.

Thanks,

-pd


-- 
--------
                             Peter Davis
               Funny stuff at http://www.pfdstudio.com
                 The artwork formerly shown as prints
    List of resources for children's writers and illustrators at:
                  http://www.pfdstudio.com/cwrl.html

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to