Could someone please remove lel...@claimspages.com from the mailing list
so I won't get any more of these annoying messages?
Original Message
Subject: Re: Re: environment variables in perl
Date: Mon, 18 Jul 2011 09:31:05 -0400
From: RightFax E-mail Gateway
To: sha
On 11-07-18 09:24 AM, Christian Walde wrote:
On Mon, 18 Jul 2011 13:44:39 +0200, Shawn H Corey
wrote:
In Windows, there is only one environment. That means if a child
process changes it, its parent can access the change.
In Linux, each process has its own environment. The child process
inheri
On Mon, 18 Jul 2011 13:44:39 +0200, Shawn H Corey wrote:
In Windows, there is only one environment. That means if a child
process changes it, its parent can access the change.
In Linux, each process has its own environment. The child process
inherits its parent's at the time of the fork and
On 11-07-18 07:29 AM, Irfan Sayed wrote:
if i do in perl like this :
print "Environment is : $ENV{'build'}\n";
then it does not pint anything
can someone please suggest ??
In Windows, there is only one environment. That means if a child
process changes it, its parent can access the change.
hi,
i am executing one shell script within perl script. now what i
need is , i need to make available all the variables set by that shell
script to perl script
for example
following is the shell script
build="abc"
export build
echo $build
now the value of $build i need to access in perl script
hi,
i am executing one shell script within perl script. now what i need is , i need
to make available all the variables set by that shell script to perl script
for example
following is the shell script
build="abc"
export build
echo $build
now the value of $build i need to access in perl script
On Thu, May 27, 2010 at 04:51:45PM -0700, Bob Sadri wrote:
> Hi
> I have a perl script that calls a csh script. The csh script sources some
> environment variables (among others). When the control comes back to my
> perl script I like to use the environment variables set in th
On 2010.05.27 20:15, Marilyn Sander wrote:
>
> On May 27, 2010, at 4:58 PM, Jim Gibson wrote:
>
>> On 5/27/10 Thu May 27, 2010 4:51 PM, "Bob Sadri"
>> scribbled:
>>
>>> Hi
>>> I have a perl script that calls a csh script. The csh scri
On May 27, 2010, at 4:58 PM, Jim Gibson wrote:
> On 5/27/10 Thu May 27, 2010 4:51 PM, "Bob Sadri"
> scribbled:
>
>> Hi
>> I have a perl script that calls a csh script. The csh script sources some
>> environment variables (among others). When the cont
On 5/27/10 Thu May 27, 2010 4:51 PM, "Bob Sadri"
scribbled:
> Hi
> I have a perl script that calls a csh script. The csh script sources some
> environment variables (among others). When the control comes back to my
> perl script I like to use the environment variables
Hi
I have a perl script that calls a csh script. The csh script sources some
environment variables (among others). When the control comes back to my
perl script I like to use the environment variables set in the csh script.
However, since this has happened in the child shell environment I am not
On Jun 29, 1:18 am, [EMAIL PROTECTED] (Rob Dixon) wrote:
.
.
>
> All of the keys of %ENV are capitalized for Windows as the environment
> variable
> names aren't case-sensitive.
>
However, I'm finding that system() honours case-preservation. From my
reply to the same thread in comp.lang.perl.misc
Dr.Ruud wrote:
> ThierryLam schreef:
>
>> system("set PYTHON");
>> system("set ProgramFiles");
>>
>> Output is:
>> PYTHON=C:\Python24\python.exe
>> PROGRAMFILES=C:\Program Files
>>
>> You'll notice that through system, the environment variable
>> ProgramFiles is all in upper case. Is there a way
ThierryLam schreef:
> system("set PYTHON");
> system("set ProgramFiles");
>
> Output is:
> PYTHON=C:\Python24\python.exe
> PROGRAMFILES=C:\Program Files
>
> You'll notice that through system, the environment variable
> ProgramFiles is all in upper case. Is there a way to preserve the
> mixed ca
ThierryLam wrote:
>
> On Windows XP Pro 32 bit, if I want to output environment variables
> PYTHON or ProgramFiles, I use the set command which output the
> following:
>
> C:\set PYTHON
> PYTHON=C:\Python24\python.exe
> C:\set ProgramFiles
> ProgramFiles=C:\Progra
On Sat, Jun 28, 2008 at 1:52 AM, ThierryLam <[EMAIL PROTECTED]> wrote:
>
> You'll notice that through system, the environment variable
> ProgramFiles is all in upper case. Is there a way to preserve the
> mixed case of the environment variable through system(...)?
>
Could use a regex, but maybe
On Windows XP Pro 32 bit, if I want to output environment variables
PYTHON or ProgramFiles, I use the set command which output the
following:
C:\set PYTHON
PYTHON=C:\Python24\python.exe
C:\set ProgramFiles
ProgramFiles=C:\Program Files
If I used Perl 5.003_07 and use the system subroutine to
On 11/12/06, siegfried <[EMAIL PROTECTED]> wrote:
Is it possible to write a perl script to manipulate the environment
variables in a windows CMD.EXE shell?
Normally, you can manipulate environment variables, but they only have
effect for sub processes. I need to change the val
ut its knowledge and consent.
The parent process in your case is no exception: If the child were
able to change the parent's environment, the parent couldn't trust its
own data. So each process has its own table of environment variables
(copied from its parent's table at laun
siegfried wrote:
>>> I think the best I could hope for would be to write a perl script that
>>> generated a bat file and then I manually execute the bat file. I don't
>>> think there is anyway to automate the execution of the bat file.
>> I'm sure that there is; if you can't put it into its own bat
siegfried wrote:
I think the best I could hope for would be to write a perl script that
generated a bat file and then I manually execute the bat file. I don't
think there is anyway to automate the execution of the bat file.
I'm sure that there is; if you can't put it into its own bat file, you
c
>> I think the best I could hope for would be to write a perl script that
>> generated a bat file and then I manually execute the bat file. I don't
>> think there is anyway to automate the execution of the bat file.
>
>I'm sure that there is; if you can't put it into its own bat file, you
>could ha
On 11/12/06, siegfried <[EMAIL PROTECTED]> wrote:
Is it possible to write a perl script to manipulate the environment
variables in a windows CMD.EXE shell?
Yes, if the shell allows it, or if you start the shell yourself.
I need to change the values of environment
variables for the
Is it possible to write a perl script to manipulate the environment
variables in a windows CMD.EXE shell?
Normally, you can manipulate environment variables, but they only have
effect for sub processes. I need to change the values of environment
variables for the parent process.
I have a
- TELECOM SOLUTIONS)
Cc: [EMAIL PROTECTED]; beginners@perl.org
Subject: Re: set environment variables
"Because it's up-side down.
Why is that?
It makes replies harder to read.
Why not?
Please don't top-post." - Sherm Pendley, Mac OS X list
[EMAIL PROTECTED] wrote:
> Hi ,
&g
emi-colon.
It is because each call to 'system' creates its own exclusive subshell
that the more obvious,
system("export VAR=value");
system("some_other_command");
Does not work.
http://danconia.org
>
>
>
>
>
> -Original Message-
> From:
---Original Message-
From: Nishi Prafull [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 19, 2005 1:49 AM
To: Perl Beginners List
Subject: set environment variables
Hi:
I need to run a script noted by $cmd1 from within perl but before that i
need to set the environment variable. how can i do it? I
Hi:
I need to run a script noted by $cmd1 from within perl but before that
i need to set the environment variable. how can i do it?
I tried
my $TEMPHOME = "/tmp";
system($cmd1);
But the script still complains the $TEMPHOME is not set.
Thanks.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
I ttied it inside the perl script, but does not seem to work.
I did a echo for $TEMPHOME but it was not set.
On 7/18/05, John W. Krahn <[EMAIL PROTECTED]> wrote:
> Nishi Prafull wrote:
> > Hi:
>
> Hello,
>
> > I need to run a script noted by $cmd1 from within perl but before that
> > i need to
Nishi Prafull wrote:
On 7/18/05, John W. Krahn <[EMAIL PROTECTED]> wrote:
Nishi Prafull wrote:
Hi:
Hello,
I need to run a script noted by $cmd1 from within perl but before that
i need to set the environment variable. how can i do it?
I tried
my $TEMPHOME = "/tmp";
system($cmd1);
But th
Nishi Prafull wrote:
> Hi:
Hello,
> I need to run a script noted by $cmd1 from within perl but before that
> i need to set the environment variable. how can i do it?
> I tried
> my $TEMPHOME = "/tmp";
> system($cmd1);
>
> But the script still complains the $TEMPHOME is not set.
> Thanks.
You pr
Jay [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 10:41 AM
To: Jason Wozniak
Cc: beginners@perl.org
Subject: Re: Environment variables
On Mon, 21 Feb 2005 16:14:43 -0500, Jason Wozniak <[EMAIL PROTECTED]>
wrote:
> That's what I thought, but it doesn't work, which is why
On Mon, 21 Feb 2005 16:14:43 -0500, Jason Wozniak <[EMAIL PROTECTED]> wrote:
> That's what I thought, but it doesn't work, which is why I tried system.
>
> The below code:
>
> use DBI;
>
> my $database;
> #my $address = "[EMAIL PROTECTED]";
> my $address = "[EMAIL PROTECTED]";
> my %attr;
> my $
ginners@perl.org
Subject: RE: Environment variables
That's what I thought, but it doesn't work, which is why I tried system.
The below code:
use DBI;
my $database;
#my $address = "[EMAIL PROTECTED]"; my $address =
"[EMAIL PROTECTED]"; my %attr; my $dbh; open MAIL, &qu
g output:
P01
P01
P01
P01
P01
The file /u01/app/oracle/check_list.txt contains several different sids,
and if I print $_ it is reading them in.
-Original Message-
From: Scott Pham [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 4:05 PM
To: Jason Wozniak
Subject: Re: Environmen
Hello,
I'm trying to write a paging script that connects to several
databases in succession, and was attempting to write the script such
that I would not have to hard code any user names, or passwords, by
using an externally identified user.
I can connect to the first database in t
> -Original Message-
> From: JupiterHost.Net [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 02, 2004 10:56 AM
> To: Perl List (E-mail)
> Subject: Re: Working with Environment Variables
>
>
> Hello Dave,
>
> > #!/usr/bin/perl
> >
> &
Hello Dave,
#!/usr/bin/perl
use strict;
use warnings;
my $from1 = $ENV{'SIP_HF_FROM'};
print $from1;
__END__
I get: Use of uninitialized value in print at test.pl line 8.
When I type "set" at the command line, I do see the variable SIP_HF_FROM ...
...
SHLVL=1
SIP_HF_FROM=sip:+16364424593
SIP_RURI=B
-Original Message-
From: Dave Kettmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 02, 2004 11:14 AM
To: Perl List (E-mail)
Subject: Working with Environment Variables
Hi List,
I am trying to get an environment variable into another variable (for ease
of use) and I am having
Hi List,
I am trying to get an environment variable into another variable (for ease of
use) and I am having trouble. It seems to only be with 2 certain variables as I
can do the following:
#!/usr/bin/perl
use strict;
use warnings;
my $path1 = $ENV{'PATH'};
print $path1
__END__
And it will
inside
> the Perl script. The whole point of environment variables is so the
> user can establish his environment *before* invoking your script.
I agree with this in general, but sometimes the environment in which your Perl
runs cannot define these variables for you. For instance, Interwoven
Good point in fact Oracle (for example) recommends setting the environment before you
even install Oracle. To do it any other way invites trouble and as Oracle would say,
you're on your own :-)
> jason corbett wrote:
> > How does one go about assuring that the environment
jason corbett wrote:
> How does one go about assuring that the environment variables are
> properly set in perl? I read several books, but none go in depth
> about how to write a script that includes all the required variables,
> that way nothing gets left out.
It's really not a
on corbett wrote:
How does one go about assuring that the environment variables are properly set in perl? I read several books, but none go in depth about how to write a script that includes all the required variables, that way nothing gets left out.
Please advise.
JC
[snipet]
#!/usr/bin/perl -w
wrote:
> How does one go about assuring that the environment variables are properly set in
> perl? I read several books, but none go in depth about how to write a script that
> includes all the required variables, that way nothing gets left out.
>
> Please advise.
>
> JC
&g
How does one go about assuring that the environment variables are properly set in
perl? I read several books, but none go in depth about how to write a script that
includes all the required variables, that way nothing gets left out.
Please advise.
JC
[snipet]
#!/usr/bin/perl -w
$ENV
> How can I set up environment variables to be used in the
> script in IIS ?
>
use the %ENV hash.
example:
$ENV{PATH} = "/bin/foo:/usr/bin";
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
How can I set up environment variables to be used in the script in IIS ?
Thanks,
Pradeep
"Ankit Gupta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I want to print some linux environment variables that have already been
set.
> Could some one let me know which command I can use to get value of
> environment variables.
>
he
Hi,
I want to print some linux environment variables that have already been set.
Could some one let me know which command I can use to get value of
environment variables.
Regards,
Ankit
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- Steve Main <[EMAIL PROTECTED]> wrote:
> I have an Oracle "framework" that I am rewriting in Perl so it will
> be more portable. I am pretty new to Perl (couple of months) and
> I didn't realize that I couldn't "source" a Perl script like
> I can with the Korn shell scripts.
Are you running t
s piece as is
Thanks for your help everyone.
-Original Message-
From: Kipp, James [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 9:15 AM
To: 'Steve Main'; perl beginners
Subject: RE: persisting environment variables
> It's a utility that allows user
> It's a utility that allows users to change their Oracle environments,
> so when they logon they can run the utility and select an Oracle
> environment to set (ORACLE_SID, ORACLE_HOME, etc). It also allows
> them to change environments, say going from DEV to TEST. I
> have a Korn
> shell
> sc
Steve Main wrote:
> Hello list,
>
> Does anyone know how to set an environment variable in Perl and then
> have that variable persist after the Perl script has ended?
>
> I'm working in Unix.
Really can't be done. A process cannot change its parent's environment.
There are various hacks that ca
--- Steve Main <[EMAIL PROTECTED]> wrote:
> Does anyone know how to set an environment variable in Perl and then
> have that variable persist after the Perl script has ended?
> I'm working in Unix.
Variables can be inherited by subshells, but never passed back up to a
parent process. You Perl scr
does this but I was trying to rewrite it in Perl.
Working on Solaris.
-Original Message-
From: Kipp, James [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 8:52 AM
To: 'Steve Main'; perl beginners
Subject: RE: persisting environment variables
>
> Hello l
>
> Hello list,
>
> Does anyone know how to set an environment variable in Perl and then
> have that variable persist after the Perl script has ended?
>
> I'm working in Unix.
>
why not just set the env variable in your unix shell or startup scripts.
what flavor of unix are you working with?
Hello list,
Does anyone know how to set an environment variable in Perl and then
have that variable persist after the Perl script has ended?
I'm working in Unix.
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- Madhu Reddy <[EMAIL PROTECTED]> wrote:
> Hi,
> I want to put MFILE=mdl_data.txt in ENV and want to
> access later..
> i am trying following...I am getting error...
> system(`MFILE=mdl_data.txt`);
> $k6 = "MFILE";
> $key6 = $ENV{$k6};
> print "$key6 \n";
> how to do this ?
The system() call
Hi,
I want to put MFILE=mdl_data.txt in ENV and want to
access later..
i am trying following...I am getting error...
system(`MFILE=mdl_data.txt`);
$k6 = "MFILE";
$key6 = $ENV{$k6};
print "$key6 \n";
how to do this ?
Thanx
-Madhu
__
Do you Yah
I think the line is supposed to be:
use Win32::ODBC;
Thanks,
Daryl J. Hoyt
Software Engineer
Geodesic Systems
< http://www.geodesic.com>
< mailto:djh@;geodesic.com>
-Original Message-
From: Angel Iliev Kafazov [mailto:angel.kafazov@;mail.bg]
Sent: Thursday, November 07, 2002 12:48 PM
On Tuesday, June 11, 2002, at 09:14 , phumes1 wrote:
> This way if someone runs the script from a command prompt I output it to
> the screen using >CON: and if its run from a web browser then I redirect
> it to a file and then read that file to the browser after completion
> using >output.txt
2002 3:08 PM
> To: Nikola Janceski
> Cc: phumes1; [EMAIL PROTECTED]
> Subject: RE: FETCHING ENVIRONMENT VARIABLES
>
>
> That's a lot of work, and Philip has said he doesn't know how to use a
> hash.
--
_}\n" for (sort keys %ENV);
>
>On 06/11, phumes1 said something like:
> >
> > I have a problem...I don't know how to use a hash. :-(
> >
> >
> > At 02:50 PM 6/11/2002 -0400, you wrote:
> > >On Jun 11, phumes1 said:
> > >
> > > >
On Jun 11, Nikola Janceski said:
>my @allenv = map { [$_, $ENV{$_} ] } keys %ENV;
>
>local $" = "--";
>foreach my $env (@allenv){
> print "@{$env}\n";
>}
That's a lot of work, and Philip has said he doesn't know how to use a
hash.
for (sort keys %ENV) {
print "$_ => '$ENV{$_}'\n";
ach my $env (@allenv){
> print "@{$env}\n";
>}
>
> > -Original Message-
> > From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 2:50 PM
> > To: phumes1
> > Cc: [EMAIL PROTECTED]
> > Subj
on Tue, 11 Jun 2002 18:57:46 GMT, Nikola Janceski wrote:
> couldn't he do:
>
> my @allenv = map { [$_, $ENV{$_} ] } keys %ENV;
>
> local $" = "--";
> foreach my $env (@allenv){
> print "@{$env}\n";
> }
Personally, I prefer
print "$_--$ENV{$_}\n" for (keys %ENV);
--
felix
--
June 11, 2002 2:50 PM
> To: phumes1
> Cc: [EMAIL PROTECTED]
> Subject: Re: FETCHING ENVIRONMENT VARIABLES
>
>
> On Jun 11, phumes1 said:
>
> >How can fetch all the environment variables and print them
> to the screen?
>
> The %ENV hash holds all the environme
I have a problem...I don't know how to use a hash. :-(
At 02:50 PM 6/11/2002 -0400, you wrote:
>On Jun 11, phumes1 said:
>
> >How can fetch all the environment variables and print them to the screen?
>
>The %ENV hash holds all the environment variables.
>
>If yo
On Jun 11, phumes1 said:
>How can fetch all the environment variables and print them to the screen?
The %ENV hash holds all the environment variables.
If you know how to use a hash, you can display all the environment
variables.
--
Jeff "japhy" Pinyan [EMAIL PROTECT
Hi,
How can fetch all the environment variables and print them to the screen?
+---+
Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED
OK...thanks for all the great examples but because I'm running either
manually from a command prompt our from a batch file via web browser they
are both being executed as a command prompt. This is how ColdFusion sees it.
SoI have a batch file with the following line. Note: The runme.exe i
On Tuesday, June 11, 2002, at 09:58 , phumes1 wrote:
> Weird.
>
> I put the below lines in my perl script and ran it from the command
> prompt and from a web browser yet the results are telling me
> that "You have started this script from the command prompt"
>
> Why?
>
> Is the HTTP_USER_AGENT
d this script from the command prompt \n"; }
>#
>
>Good luck !!
>
>Regs David
>-----
>
> > Hi,
> >
> > I thought of another way possibly...of doing this.
> >
> > Is there a way through environment variables (or someother way) to
>
+0200 (METDST)
>From: David vd Geer Inhuur tbv IPlib <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: Checking environment variables...outputting to file
>
>
>Hi,
>
>There should be many ENV that would only be set if you are using a
>brow
else { print "You have started this script from the command prompt \n"; }
#
Good luck !!
Regs David
-
> Hi,
>
> I thought of another way possibly...of doing this.
>
> Is there a way through environment variables (or someother way) to check to
>
Hi,
I thought of another way possibly...of doing this.
Is there a way through environment variables (or someother way) to check to
see if the perl script is being run via command prompt or from a browser
(web interface)?
This way if someone runs the script from a command prompt I output it
Can anyone help with this? On a script that is writing to a file I'm able to
get some of the variables but not others. Why?
$ipaddress = "$ENV{'REMOTE_ADDR'}";
## Works Fine
$where_from = "$ENV{'HTTP_REFERER'}";
## only seems to report the current page being viewed
$host = "$ENV{'REMO
Download the Win32::AdminMisc module from http://www.roth.net/perl. The
SetEnvVar() function will do what you want. Keep in mind that while new
windows will have the new environment variables, the environment the script
is running uner will still have to be set manually using the %ENV hash or
gt; is far more clever.
>
> The original batch file setted two environment variables
> which were available after running the script. That is,
> if I did
> c:> cvs-init.bat
>
> it has commands like
> set CVSROOT=:pserver:user@aCVSserver:/usr/local/cvsroot
>
>
I thought it would be a good idea to replace a batch script
(.bat) running on a Windows 2000 with a Perl script which
is far more clever.
The original batch file setted two environment variables
which were available after running the script. That is,
if I did
c:> cvs-init.bat
it has comma
cant control it ...
my company appends it to all messages sent from the company
sorry
-Original Message-
From: Andrea Holstein [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 29, 2001 9:01 AM
To: [EMAIL PROTECTED]
Subject: Re: child processes and environment variables
Thomas
On Fri, Dec 28, 2001 at 12:20:16PM -0500, Maciejewski, Thomas wrote:
> I am having an issue when spawning a child
I understand that this is not uncommon and should not cause undue concern.
> it appears that the environment variable is not being passed to the child
> process here is the code:
Thomas Maciejewski wrote:
>
> --
> This message is intended only for the personal and confidential use of the
>designated recipient(s) named above. If you are not the intended recipient of this
>message you are hereby
I am having an issue when spawning a child
it appears that the environment variable is not being passed to the child
process here is the code:
my $kidpid = open($fh, "-|");
if (! $kidpid) {
open(STDERR, "> /dev/null"); # rlog may complain; ignore.
I am having an issue when spawning a child
it appears that the environment variable is not being passed to the child
process here is the code:
my $kidpid = open($fh, "-|");
if (! $kidpid) {
open(STDERR, "> /dev/null"); # rlog may complain; ignore.
On Wed, Dec 12, 2001 at 02:10:37PM +1000, Lorne Easton wrote:
> As in the attached code: The variables do not "unlink" when the program
> exits or when I specify to unlink.
What variables? What do you mean by unlink? Do you mean the variables are
removed from memory? Provided you're running th
As in the attached code: The variables do not "unlink" when the program
exits or when I specify to unlink.
I.E: If I run this program once, then run it again with incorrect domain
specified it gives the same information.
Is there any way of gracefully "exiting" and removing all the variables fro
> -Original Message-
> From: Mcgregory Pinto [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 3:02 PM
> To: [EMAIL PROTECTED]
> Subject: Reading Environment Variables
>
>
> Hi all ...
>
> I´m working in a Unix environment, and I´ve two shell
;zzz.sh")
> my $grg = $ENV{GRG};
> print "$grg\n"; // must print 'zzz'
>
> How can i do this ???
You can't. A child process cannot affect a parent's environment variables.
You'll have to do something else, such as assign `zzz.sh` (that is
Hi all ...
I´m working in a Unix environment, and I´ve two shell scripts xxx.sh and
zzz.sh.
This scripts change the value of environment variable GRG initialized with
'aaa'. The first fill with 'xxx' the second fill with 'zzz'.
I need to call this scripts in a Perl script and get the variable GRG
Thanks Brian and Marcus.
$^O is exactly what I needed.
_brian_d_foy <[EMAIL PROTECTED]>
10/19/2001 08:44 AM
To: [EMAIL PROTECTED]
cc:
Subject:Re: accessing environment variables
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Greg F
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Greg Froese) wrote:
> I want to be able to test whether I'm in Windows or Linux, and this seems
> like a good way to do it.
you want $^O, not an environment variable. take a look inside
CGI.pm for some example code. :)
--
brian d foy <[EMAI
--Original Message-
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
| Sent: Friday, October 19, 2001 2:15 PM
| To: [EMAIL PROTECTED]
| Subject: accessing environment variables
|
|
| How do I access Windows environment vars?
|
| I want to be able to test whether I'm in Windows or Linu
How do I access Windows environment vars?
I want to be able to test whether I'm in Windows or Linux, and this seems
like a good way to do it.
If there is an easier/better way, I'm all ears.
Thanks
Greg
On Saturday 14 July 2001 22:18, Jeff 'japhy' Pinyan wrote:
>
> # prog1
> use Data::Dumper;
> $ENV{ARRAY} = Dumper \@array;
>
> # prog2
> @array = @{ eval $ENV{ARRAY} };
>
I would be really careful with that axe :) evaluating anything that you get
from enviroment variable is a security
On Jul 14, P. Schaub said:
>is it possible to pass an array referenz
>by an environment variable to another perl script ?
No. The environment is not magical like that -- the place in memory of
the reference in program A is not special to program B.
You'll have to send a serialized version som
Hi out there,
is it possible to pass an array referenz
by an environment variable to another perl script ?
no1.pl
my @Array=('A','B','C');
$ENV{Array}=\@Array;
`./no2.pl`;
no2.pl
foreach my $Part (\@{ENV{Arra
back as the response.
> >
> > Then I did this (in Bash, Linux-Mandrake 7.2):
> >
> > MYVARIABLE=astring
> > perl -e 'print $ENV{MYVARIABLE}, "\n";'
> >
> > It spits out nothing...why doesn't PERL detect any of my environmen
On 10 Jun 2001, at 15:16, Markus Peter wrote:
> On Sun, 10 Jun 2001, George Petri wrote:
> > It spits out nothing...why doesn't PERL detect any of my environment
> > variables? This is critical in some CGI programs that I intend to write (but
>
> Well - becaus
1 - 100 of 107 matches
Mail list logo