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.
--
Where can I learn about hashes?
At 01:58 PM 6/11/2002 -0500, you wrote:
>Don't ask a question like this again... What you should really be asking
>is where you can learn about hashes. never ask someone to do your work
>for you. Anyway, here...
>
>print "$_ is $ENV{$_}\n" for (sort keys %ENV);
>
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 you know how to use a hash, you can
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 PROTECTED] http://www.po
Hi,
How can fetch all the environment variables and print them to the screen?
+---+
Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+-