in reply to Real Path Name
... yields ...print join(',',Substed(split(/\//,cwd)));
Note the comma in the above examples, Substed returns a list of two elements, which I joined with a comma in the output. I've substed X: to C:\temp, Z: to C:\, and O: is a network share.C:\>perl -MCwd -MWin32::FileOp -e "..." ,HarddiskVolume1 X:\>perl -MCwd -MWin32::FileOp -e "..." \??\C:\temp, Z:\>perl -MCwd -MWin32::FileOp -e "..." \??\C:, O:\>perl -MCwd -MWin32::FileOp -e "..." ,LanmanRedirector\;O:000000000002ef75\SOME-MACHINE\Network\Share
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Real Path Name
by Anonymous Monk on Mar 09, 2009 at 17:48 UTC |