- or download this
print File::Spec->rel2abs(
File::Spec->catdir(
...
File::Spec->updir(),
)
);
- or download this
print File::Spec->rel2abs(
File::Spec->updir,
dirname(__FILE__)
);
- or download this
print dirname(dirname(File::Spec->rel2abs(__FILE__)));
- or download this
print dirname(dirname(__FILE__)); # ?? Is this reliable?