Hi Monks,
Can anyone help me in finding the parent directory path, I don't have any inputs for current directory also. I just need to find the parent directory path from where my script is
I also have a script which only prints parent directory, where as I need to store it into a variable,
---------------------------------------
use strict;
use warnings;
use Cwd;
use File::Spec;
print Cwd::realpath(File::Spec->updir);
---------------------------------------
Thanks in advance
Suneel
In reply to Reading parent directory path by suneel.reddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |