Hi Monks!
in my script i chdir allot to move from one directory to another, Now i want to use that script on a windows machine therefore the absolute Unix pathnames should be accepted by windows too. I mean i cannot have just /etc... on windows right ?. The c:\ in Windows and the / in Linux is my issue
i used the
File::Spec to write the following:
$base = File::Spec->rootdir();
$path = 'home/me/test/';
$rel_path = File::Spec->abs2rel( $path, $base ) ;
chdir $rel_path;
but as usually it doesn't work. Maybe i shouldn't be using these functions;