You have to escape it with another backslash.  'C:\\ /S'

Keep up with my goings on at http://theillien.blogspot.com

AndrewMcHorney wrote:
> Hello
> 
> I am trying to build a string that contains the following text "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`;
> 
> Right now I have the following working:
> 
> However, it is now working:
> 
> @dir_list = 'dir c: /S`; which gives me all the files in the directory
> that is being pointed to at the moment for C: and all the subdirectories.
> 
> Andrew
> 
> 

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


Reply via email to