On Apr 21, 2004, at 6:09 AM, Ryan Thomas wrote:


I am relatively new at PERL and am learning it for a school project. What I would like to do is write a perl script that can run a complete directory listing including sub-directories and save the result to a text file.

Not sure where to start.

I'm posting the following script to see what's wrong with File Globbing exactly:

[EMAIL PROTECTED] contains String of Files in Current Directories and Sub-Directories
@files = <* */*>;
open(FILE,">filelisting.txt");
print FILE join("\n",@files),"\n";
close FILE;



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




Reply via email to