> -----Original Message-----
> From: Neil Watkiss [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 09, 2001 10:32 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Inline bug with spaces in paths
> 
> 
> The short answer is this: if you don't feel like upgrading, 
> don't use spaces
> in paths. Here's a solution for you if you insist on not upgrading:
> 
>    use Win32;
>    my $apache_dir = Win32::GetShortPathName('C:\Program 
> Files\Apache');
>    system("$apache_dir\\bin\\something.exe");
> 

or easier:

system('"C:\Program Files\Apache\bin\something.exe"');

I don't think perl actually does a qw() on the path. It just doesn't quote
the path as needed for the OS. But I could be wrong about that. Nevertheless
the above quoting does the trick.

Thomas

Reply via email to