couldn't he do:
my @allenv = map { [$_, $ENV{$_} ] } keys %ENV;
local $" = "--";
foreach 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]
> 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 environment variables.
>
> If you know how to use a hash, you can display all the environment
> variables.
>
> --
> Jeff "japhy" Pinyan [EMAIL PROTECTED]
> http://www.pobox.com/~japhy/
> RPI Acacia brother #734 http://www.perlmonks.org/
> http://www.cpan.org/
> ** Look for "Regular Expressions in Perl" published by
> Manning, in 2002 **
> <stu> what does y/// stand for? <tenderpuss> why,
> yansliterate of course.
> [ I'm looking for programming work. If you like my work,
> let me know. ]
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]