----- Original Message ----- 
From: "Jan Dubois" 

> > D:\pscrpt>type try.pl
> > 
> > use warnings;
> > $z1 = "hello\tworld";
> > print $z1, "\n";
> > $z2 = "hello\\tworld";
> > print $z2, "\n";
> > system("rmdir $z2");
> > 
> > D:\pscrpt>perl try.pl
> > hello   world
> > hello\tworld
> > rmdir: `hello\\tworld': No such file or directory
> > 
> > D:\pscrpt>
> > 
> > (That's still using the MSYS/bin/rmdir.exe.)
> 
> It is rmdir.exe that doubles the backslash before printing it.  Just run
> 
>     rmdir.exe foo\bar
> 
> and it will print
> 
>     rmdir.exe: `foo\\bar': No such file or directory
>  

Hadn't considered that possibility.

> or
> 
>     rmdir.exe foo^Abar
> 
> (the ^A should be a single Control-A, not 2 separate characters)
> prints
> 
>     rmdir.exe: `foo\001bar': No such file or directory
> 
> using the octal notation for ^A
> 

Yep - finally makes sense. Thanks to all for responding :-)

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to