Name : perl-Env-Path
| |
Version : 0.19
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.1
| Date : 2015-04-15 14:22:22
|
Group : Development/Libraries/Perl
| Source RPM : perl-Env-Path-0.19-1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : (none)
| |
Summary : Advanced operations on path variables
|
Description :
Env::Path presents an object-oriented interface to _path variables_, defined as that subclass of _environment variables_ which name an ordered list of filesystem elements separated by a platform-standard _separator_ (typically \':\' on UNIX and \';\' on Windows).
Of course, core Perl constructs such
$ENV{PATH} .= \":/usr/local/bin\";
will suffice for most uses. Env::Path is for the others; cases where you need to insert or remove interior path entries, strip redundancies, operate on a pathvar without having to know whether the current platform uses \":\" or \";\", operate on a pathvar which may have a different name on different platforms, etc.
The OO interface is slightly unusual in that the environment variable is itself the object and the constructor is Env::Path->AUTOLOAD(); thus
Env::Path->MANPATH;
will bless $ENV{MANPATH} into its package while leaving it otherwise unmodified (with the exception of possible autovivification). Unlike most objects, this is a scalar and thus can have only one attribute; its value.
In other words, Env::Path simply defines a set of methods a path variable may call on itself without changing the variable\'s value or other semantics.
Also, while the object reference may be assigned and used in the normal style
my $path = Env::Path->CLASSPATH; $path->Append(\'/opt/foo/classes.jar\');
a shorthand is also available:
Env::Path->CLASSPATH; CLASSPATH->Append(\'/opt/foo/classes.jar\');
I.e. the name of the path variable may be used as a proxy for its object reference. This may be done at \'use\' time too:
use Env::Path qw(PATH CLASSPATH); # or qw(:all) to bless all EV\'s CLASSPATH->Append(\'/opt/foo/classes.jar\');
The design is intended to make use of this module as lightweight as possible. Rather than creating a new object to manage an environment variable, the environment variable is provided a set of methods for self-modification but is otherwise left undisturbed and can be used in all normal ways.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_11_SP3/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(Env::Path)
perl-Env-Path
Requires :