NAME
ARGV::Abs - Transform paths in @ARGV to absolute paths
SYNOPSIS
From one-liners (see perlrun):
perl -MARGV::Abs -E "..." foo.txt bar.txt ...
From a script where all arguments are expected to be filenames:
use ARG::Abs;
...
From a script that takes command-line options that should not be processed by ARGV::Abs
:
# Skipping import
use ARGV::Abs ();
... extract options from @ARGV ...
# Transform paths: do import now
ARGV::Abs->import;
Resolve relative paths using base directory /tmp:
perl -MARGV::Abs=/tmp -E "..." foo.txt bar.txt ...
use ARGV::Abs '/tmp';
DESCRIPTION
This module transform all elements of @ARGV
into absolute pathnames.
Relative paths are resolved by default relative to the current directory. To use another base directory, pass it as the argument for import.
SEE ALSO
Some other modules that add magic to @ARGV
: ARGV::URL, ARGV::readonly, Encode::Argv.
AUTHOR
Olivier Mengué, mailto:dolmen@cpan.org.
COPYRIGHT & LICENSE
Copyright © 2011 Olivier Mengué.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.