Hi monks!
Im using rel2abs of file::spec module to convert the relative path to absolute path. Its works fine in windows. but when i run in linux the absolute path has not come out correctly.
pwd
/sample/folder1/test
$ perl test.pl "/sample/folder1/test/work/first.html"
what test.pl does is go into first.html; extract the files used and convert them to abs path and show the resultant file paths.
for the file '../pictures/logo.gif', it returns the path as
/sample/folder1/test/work/../pictures/logo.gif' while actually it should be '/sample/folder1/test/pictures/logo.gif'
Can anyone tell me why it doesnot work