Mimi Cafe wrote:
I am trying to process a directory and all subdirectory recursively and
generate a list as the Unix command "ls -R" will display,

<snip>

The script will finally be used on Windows OS,  Unix system command cannot
be used.

    print `dir /B /S`;

If you prefer a portable solution, check out the File::Find module.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to