$Bill Luebkert wrote:

> Sisyphus wrote:
> 
> 
>>----- Original Message ----- 
>>From: "$Bill Luebkert" <[EMAIL PROTECTED]>
>>
>>>My sentiments exactly - it's time we find out the full paths to these
>>
>>files
>>
>>
>>>and get it straight.  Personally, I prefer to never use \'s unless
>>
>>absolutely
>>
>>
>>>necessary and then I convert them at the last possible moment.
>>>
>>
>>
>>Yeah - I don't like 'em much either. But I used to keep doing things like:
>>
>>system 'copy somefile ../subfolder/somefile';
>>
>>and then even single backslashes are no good if I:
> 
> 
> Just add one line (or two in this case since I broke it down) and you're in:
> my $cmd = "copy somefile ..\subfolder\somefile";

Forgot to fix your orig line:

my $cmd = "copy somefile ../subfolder/somefile";

> $cmd =~ s!/!\\\\!g;
> system $cmd;
> 
> 
>>system "copy somefile ..\subfolder\somefile";
>>
>>so I sometimes tend to use double backslashes and then I don't have to think
>>about anything .... except whether I'm on Linux or Windows (and I'm usually
>>not sufficiently mindful of that, either :-)
> 
> 


-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to