in reply to Re: Absolute pathnames from relative?
in thread Absolute pathnames from relative?
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"))'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Absolute pathnames from relative?
by superfrink (Curate) on Oct 14, 2005 at 21:58 UTC |