03-16-2009
Hi Pludi,
Thnaks for responding to my problem. What do you mean by "modified PATH variable" if I may ask?
Kind Regards
Mehrdad
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
I am new to UNIX
I have no idea about its functions and commands
but i am interested in learning it.
I have SCO unix ver 3.2.
How can i install it to co exist on a computer with Win XP (SP 2) already installed on it ?
My hardware specs are P IV 1.5 Ghz, 256 MB Ram, 2 hard disks
a 120... (0 Replies)
Discussion started by: Krish2487
0 Replies
2. SCO
Hello
hey ppl I wanna use Unix SCO, and I have a Unix SCO 5.05 bootable CD.
Now plz can any one help me or guide me the steps of Unix installation.
I want to install myself so plz If anyone experts in Unix installation & knows simple configuration... so plz mail me or reply me here , step by... (2 Replies)
Discussion started by: Mohsin
2 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I need to install a program that can only be run in unix. I dont have unix on my system. Does anyone know of any free shell accounts with install permissions. I know that there are free shell accounts available on web , but those are without install permission.
Does installing Ubuntu... (7 Replies)
Discussion started by: akc
7 Replies
4. Solaris
Is there any way i can check if the solaris server was build using jumpstart or normal cd installation .. though i can get the info from install_log but it only shows it was build from flash archive .. but does not give info regarding cd+flash, or jumpstart+flash .. (0 Replies)
Discussion started by: fugitive
0 Replies
5. Solaris
I have problem installing mailman 2.5 onto Solaris10 sparc. During make instal, the error message I got is as follows.
.././install-sh -c -m 755 mailman /usr/local/mailman/scripts
.././install-sh -c -m 644 sitelist.cfg /var/mailman/data
if ; \
then \
rm -rf... (0 Replies)
Discussion started by: cchoe
0 Replies
6. Fedora
Hi Guys I want to know whether is it possible to automatically Install a RPM package after installing OS.
Basically we have have one rpm package which we want to install as part of OS installation . Please Suggest (3 Replies)
Discussion started by: mr_deb
3 Replies
7. UNIX for Dummies Questions & Answers
Hi Experts,
Problem statement :
We have an URL for which we need to read the data and get parsed inside the shell scripts.
My Aix has very limited perl utility, i cant install any utility as well.
Precisely, wget,cURL,Lynx,w3m and Lwp cant be used as i got these utilities only when i googled... (0 Replies)
Discussion started by: scott_cog
0 Replies
8. Ubuntu
guys tell me steps to install ubunto of linux kali over
windows 7 (0 Replies)
Discussion started by: Roshan4u
0 Replies
9. UNIX for Beginners Questions & Answers
I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal.
I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies
Env(3pm) Perl Programmers Reference Guide Env(3pm)
NAME
Env - perl module that imports environment variables as scalars or arrays
SYNOPSIS
use Env;
use Env qw(PATH HOME TERM);
use Env qw($SHELL @LD_LIBRARY_PATH);
DESCRIPTION
Perl maintains environment variables in a special hash named %ENV. For when this access method is inconvenient, the Perl module "Env"
allows environment variables to be treated as scalar or array variables.
The "Env::import()" function ties environment variables with suitable names to global Perl variables with the same names. By default it
ties all existing environment variables ("keys %ENV") to scalars. If the "import" function receives arguments, it takes them to be a list
of variables to tie; it's okay if they don't yet exist. The scalar type prefix '$' is inferred for any element of this list not prefixed by
'$' or '@'. Arrays are implemented in terms of "split" and "join", using $Config::Config{path_sep} as the delimiter.
After an environment variable is tied, merely use it like a normal variable. You may access its value
@path = split(/:/, $PATH);
print join("
", @LD_LIBRARY_PATH), "
";
or modify it
$PATH .= ":.";
push @LD_LIBRARY_PATH, $dir;
however you'd like. Bear in mind, however, that each access to a tied array variable requires splitting the environment variable's string
anew.
The code:
use Env qw(@PATH);
push @PATH, '.';
is equivalent to:
use Env qw(PATH);
$PATH .= ":.";
except that if $ENV{PATH} started out empty, the second approach leaves it with the (odd) value "":."", but the first approach leaves it
with ""."".
To remove a tied environment variable from the environment, assign it the undefined value
undef $PATH;
undef @LD_LIBRARY_PATH;
LIMITATIONS
On VMS systems, arrays tied to environment variables are read-only. Attempting to change anything will cause a warning.
AUTHOR
Chip Salzenberg <chip@fin.uucp> and Gregor N. Purdy <gregor@focusresearch.com>
perl v5.12.1 2010-04-26 Env(3pm)