http://www.perlmonks.org?node_id=1039973


in reply to How to read only limited number of files from a Directory

I recently solved a similar problem by creating a subclass of IO::Dir and overriding the read method.
Bill