AndrewMcHorney wrote:
I am trying to build a string that contains the following text "dir c:\
/S"
Use single quotes:
my $command = 'dir c:\ /s';
so I can get a complete directory of all the files on drive C and
put them into an array with the following line of code - @dir_list =
'dir c:\ /S`;
my @dir_list = `$command`;
--
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/