Re: Perl qx directory command on windows

by "Steve Mount" <steve(at)saltyrain.com>

 Date:  Fri, 14 Dec 2001 16:41:10 -0500
 To:  "Sauer,
Michael F." <SauerM(at)missouri.edu>,
<hwg-techniques(at)hwg.org>
 References:  missouri
  todo: View Thread, Original
Be sure to use "\\" when you need to use "\" in a Perl string.

-------------------------------------------------------------
Steve Mount, Software Engineer            steve(at)saltyrain.com
Home Site                            http://www.saltyrain.com
US Constitution Online          http://www.usconstitution.net
Clear your Soul            http://www.anonymousconfession.com

----- Original Message ----- 
From: "Sauer, Michael F." <SauerM(at)missouri.edu>
To: <hwg-techniques(at)hwg.org>
Sent: Friday, December 14, 2001 3:36 PM
Subject: Perl qx directory command on windows


> 
> Hi
> 
> I want to return a directory listing with a perl script 
> (active Perl on Win 2000 with IIS) - it works fine on unix
> 
> when I do
> 
> $results = qx[dir E:\TopFolder ];
> print "$results\n";
> 
> everything is fine but if I try
> 
> $results = qx[dir E:\TopFolder\SecondFolder ];
> print "$results\n";
> 
> 
> I get
> 
> File Not Found Volume in drive E is data 
> Volume Serial Number is 7856-1C0A Directory of E:\  
> 
> 
> What's going on here?
> 
> thanks
> 
> Mike S.
> 
> 
> Michael Sauer
> Univ. MO Research Reactor
> Columbia MO
> (573) 882-5327
> sauerm(at)missouri.edu
> 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.