Env::Sanctify::Auto

Automatically clean up your %ENV
Download

Env::Sanctify::Auto Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jonathan Yu
  • Publisher web site:
  • http://search.cpan.org/~frequency/

Env::Sanctify::Auto Tags


Env::Sanctify::Auto Description

Automatically clean up your %ENV Env::Sanctify::Auto is a Perl module to automatically clean up your %ENV.Environment variables such as PATH (command search path) and IFS (input field separator) can have severe security ramifications. Luckily, enabling Perl's taint mode will provide some extra checking whenever there can be potentially unsafe calls to functions like system or open.However, there has been no simple way to load a module which automatically cleans up your environment. Various methods are used to temporarily clean up the environment for you or forked children, such as: local $ENV{PATH} = '/usr/bin:/usr/local/bin';While this works for most purposes, it has some potential issues such as what to do when the paths are different under different architectures. Obviously such a command is not portable to environments with different path conventions so this would break your program's compatibility with Win32, among others.This simple module subclasses Env::Sanctify to take care of this for you. Among other things, this means you get the nice bonus of lexically scoped environments (see Env::Sanctify for details). Requirements: · Perl


Env::Sanctify::Auto Related Software