Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.217.197 Times

Env::Bash 0.04

  Date Added: February 20, 2010  |  Visits: 743

Env::Bash

Report Broken Link
Printer Friendly Version


Product Homepage
Download (92 downloads)



Env::Bash is a Perl extension for accessing _all_ bash environment variables. SYNOPSIS use Env::Bash; Standard interface: my @var = get_env_var( "SORCERER_MIRRORS", Source => "/etc/sorcery/config", ); print "SORCERER_MIRRORS via get_env_var:n", join( "n", @var ), "ncount = ", scalar @var, "n"; @var = Env::Bash::SORCERER_MIRRORS ( Source => "/etc/sorcery/config", ); print "SORCERER_MIRRORS via name:n", join( "n", @var ), "ncount = ", scalar @var, "n"; my @keys = get_env_keys( Source => "/etc/sorcery/config", SourceOnly => 1, ); print "first 10 keys:n", map { " $_n" } @keys[0..9]; Object oriented interface: my $be = Env::Bash->new( Source => "/etc/sorcery/config", Keys => 1, ); my @var = $be->get( "SORCERER_MIRRORS" ); print "SORCERER_MIRRORS via get:n", join( "n", @var ), "ncount = ", scalar @var, "n"; @var = $be->SORCERER_MIRRORS; print "SORCERER_MIRRORS via name:n", join( "n", @var ), "ncount = ", scalar @var, "n"; $be = Env::Bash->new( Keys => 1,); @var = $be->HOSTTYPE; print "HOSTTYPE via name:n", join( "n", @var ), "ncount = ", scalar @var, "n"; if( $be->exists( BASH_VERSINFO ) ) { print "BASH_VERSINFO =>n ", join( "n ", $be->BASH_VERSINFO ), "n"; } my %options = $be->options( [], Keys => 1 ); Tie HASH interface: my %env = (); tie %env, "Env::Bash", Source => "/etc/sorcery/config", ForceArray => 1; my $var = $env{SORCERER_MIRRORS}; print "SORCERER_MIRRORS via tied hash:n", join( "n", @$var ), "ncount = ", scalar @$var, "n"; $var = $env{HOSTTYPE}; print "HOSTTYPE via tied hash:n", join( "n", @$var ), "ncount = ", scalar @$var, "n"; while( my( $key, $value ) = each %env ) { print "$key =>n ", join( "n ", @$value ), "n"; }.

Requirements: No special requirements
Platforms: Linux
Keyword: Env Envbash Hosttype Join Libraries Mirrors Print Programming Sorcerer Var Versinfo Via
Users rating: 0/10

License: Freeware Size: 14.34 KB
USER REVIEWS
More Reviews or Write Review


ENV::BASH RELATED
Programming  -  devkitPro 1.5.7
This project is for homebrew console development tools based on the gnu compiler collection with additional tools and libraries to aid programming each supported console. The windows variants are built with MinGW.
444.26 KB  
Libraries  -  Env::Path 0.18
Env::Path is a Perl module with advanced operations on path variables. SYNOPSIS use Env::Path; # basic usage my $manpath = Env::Path->MANPATH; $manpath->Append(/opt/samba/man); for ($manpath->List) { print $_, "n" }; # similar to above...
10.24 KB  
Libraries  -  Env::C 0.06
Env::C is a Get/Set/Unset Environment Variables on the C level. SYNOPSIS use Env::C; my $key = "USER"; $val = Env::C::getenv($key) || ; Env::C::setenv($key, "foobar", [$override]); $new_val = Env::C::getenv($key) || ;...
9.22 KB  
Libraries  -  Hey::heyPass 1.09
SYNOPSIS # To send a user to login: use Hey::heyPass; $heyPass = Hey::heyPass->new($yourSiteId, $yourSiteKey); $login = $heyPass->beginSession({ successUrl => "http://$ENV{HTTP_HOST}/loginSuccess.cgi?sessionId=%s", failureUrl =>...
3.07 KB  
Libraries  -  Time::Zone 1.16
Time::Zone is a miscellaneous timezone manipulations routines. SYNOPSIS use Time::Zone; print tz2zone(); print tz2zone($ENV{TZ}); print tz2zone($ENV{TZ}, time()); print tz2zone($ENV{TZ}, undef, $isdst); $offset = tz_local_offset();...
22.53 KB  
Libraries  -  B::Deparse 5.8.8
B::Deparse is a Perl compiler backend to produce perl code. SYNOPSIS perl -MO=Deparse[,-d][,-fFILE][,-p][,-q][,-l] [,-sLETTERS][,-xLEVEL] prog.pl B::Deparse is a backend module for the Perl compiler that generates perl source code, based on...
12.2 MB  
Libraries  -  Math::Combinatorics 0.09
Math::Combinatorics is a Perl module that can perform combinations and permutations on lists. SYNOPSIS Available as an object oriented API. use Math::Combinatorics; my @n = qw(a b c); my $combinat = Math::Combinatorics->new(count => 2,...
10.24 KB  
Libraries  -  XML::All 0.02
XML::All is a Perl module that contains overloaded XML objects. SYNOPSIS use XML::All; Â my $xml = 1 2 3 >; Â print $$xml; # a print join ", ", @$xml; # 1, 2 , 3 print...
25.6 KB  
Libraries  -  GODI 20060118
GODI library provides an advanced programming environment for the Objective Caml (OCaml) language. From INRIA (who created OCaml) you can get the OCaml compiler and runtime system, but this is usually not enough to develop applications. You also...
1.5 MB  
Libraries  -  Device::TNC 0.03
Device::TNC is a Perl module that acts like a generic interface to a TNC. This module implements a generic interface to a Terminal Node Controller (TNC). It loads sub classes that provide the low level interface for the appropriate TNC to be...
16.38 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB