Assign this to a variable if it prints what you want.
use strict; use warnings; use Cwd; use File::Spec; my $parent = Cwd::realpath(File::Spec->updir); print "Parent directory: $parent";
In reply to Re: Reading parent directory path
by marto
in thread Reading parent directory path
by suneel.reddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |