An easier method using the Cwd method, albeit with the same limitation of being a filesystem-based implementation, is through the use of the abs_path method. For example:
# perl -MCwd=abs_path -le 'print abs_path("/usr/local/src/../bin/fnurg +le")' /usr/local/bin/fnurgle
perl -le 'print+unpack("N",pack("B32","00000000000000000000001000100010"))'
In reply to Re: Re: Absolute pathnames from relative?
by rob_au
in thread Absolute pathnames from relative?
by grantm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |