There's room for more polish, but the general idea is there.my ($greatest, $gnum) = ('', 0); while($file = readdir DIR) { (my $fnum = $file) =~ /^(\d+)\./; next unless $fnum > $gnum; $gnum = $fnum; $greatest = $file; }
In reply to Re: Argh
by chromatic
in thread Argh
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |