printf "next is %s\n", next_file($_) for qw( a.png dpq.jpg zx.png ott.jpg zzz.tiff oi.png );