Env-Path Perl script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: Env-Path-0.18.tar.gz
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Perl
  • Price:Other Free / Open So
  • Company: David Boyce (View more)

Env-Path script description:




Publisher review:
Env-Path simply defines a set of methods a path variable may call on itself without changing the variable's value or other semantics. 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.
Env-Path is a Perl script for Modules scripts design by David Boyce. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Env-Path simply defines a set of methods a path variable may call on itself without changing the variable's value or other semantics.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5