At 10:22 27.06.2001 -0500, Daryl Hoyt wrote:
>Hi,
>     I am writing a script to be used on Windows and many different flavors
>of Unix.  I am looking for a good way to convert Unix paths to Windows.  Any
>Ideas?????

What do you mean exactly.  If you just mean converting "\" to "/"  and 
getting rid of the drive you can do this:

my $sPath = "C:\\foo\\bar";
$sPath =~ s/^[a-z]+://i;
$sPath =~ s/\\/\//g;
print $sPath;
Aaron Craig
Programming
iSoftitler.com

Reply via email to