RE: shell script problem so simple I'm embarassed to ask

Startseite
Anhänge:
Nachricht
+ (text/plain)
Nachricht löschen
Nachricht beantworten
Autor: Jeremy C. Reed
Datum:  
To: plug-discuss
Betreff: RE: shell script problem so simple I'm embarassed to ask
On Fri, 11 Feb 2005, Craig White wrote:

> I know with a shell script, I can insert a command like...
>
> /bin/env > /tmp/env.txt
>
> to dump my current variable list to a file. It would truly help my
> debugging of perl if I knew how to do the same thing in perl.


Google will lead you to many websites that will teach you many ways to do
it, such as http://www.upriss.org.uk/sswl/s6.html

   foreach $elem (keys %ENV) {
     print "$elem $ENV{$elem}\n";
   }



Jeremy C. Reed

                 BSD News, BSD tutorials, BSD links
                http://www.bsdnewsletter.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss