Re: PC Directory Listing in Perl

2007-11-04 Thread Tom Phoenix
On 11/3/07, AndrewMcHorney <[EMAIL PROTECTED]> wrote: > Right now my code reads : > > @file_list = `cd c:\;dir c:/s`; I think that's your problem: If you were to print that same string you've got in backticks... print "The command is: " . "cd c:\;dir c:/s" . "\n"; ...you would see that you're

PC Directory Listing in Perl

2007-11-04 Thread AndrewMcHorney
Hello I am working on a perl script in which I want a complete directory listing of a drive partition. How can this be done in Perl? Right now my code reads : @file_list = `cd c:\;dir c:/s`; However I am getting the following error message: Extracting files in directoryThe filename, direct