in reply to Simple Path Cleanup
Play around with Path::Class-
perl -MPath::Class -le 'print file(+shift)->cleanup' [path]For example-
perl -MPath::Class -le 'print file(+shift)->cleanup' /foo//baz/./foo.t +xt /foo/baz/foo.txt
It has become one of my favorite families of modules.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple Path Cleanup
by almut (Canon) on May 10, 2009 at 09:00 UTC | |
by wesley.spikes (Initiate) on May 10, 2009 at 16:12 UTC | |
by Your Mother (Archbishop) on May 10, 2009 at 16:46 UTC |