in reply to Use 'ls' to read files in perl????

If, in a moment of temporary weakness, you are tempted to use a UNIX utility program from Perl again, you might like to check UNIX 'command' equivalents in Perl. It is not complete, but its a start.