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

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Craig White
日付:  
To: plug-discuss
題目: RE: shell script problem so simple I'm embarassed to ask
On Fri, 2005-02-11 at 15:36 -0700, Ben Weatherall wrote:
> And for the really anal amongst us...
>    foreach my $elem (sort {$a cmp $b} keys %ENV) {
>      print "$elem $ENV{$elem}\n";
>    }

>
> This just prints out the environment variables in sorted order ;-)

----
sorted is nice - directed to a text file was what I was hoping to get...

I know this ain't doing that...

{
   foreach my $elem (sort {$a cmp $b} keys %ENV) {
     print "$elem $ENV{$elem}\n" > "/tmp/perldump.txt";
   }


I am dealing with subroutines that don't direct to standard out

Thanks

Craig

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