Perlでサーバーの環境変数を取得する方法

 

#!/usr/bin/perl 
print "Content-type: text/html", "\n\n"; 
print "<HTML><BODY>", "\n"; 
print "<H1>環境変数</H1><HR>", "\n"; 
foreach my $key( keys %ENV ){ 
print "$key: $ENV{$key}<BR>", "\n"; 
print "<HR>", "\n"; 
print "</BODY></HTML>", "\n";
This entry was posted in 未分類. Bookmark the permalink.

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

*

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>