home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Serving the Web
/
ServingTheWeb1995.disc1of1.iso
/
linux
/
slacksrce
/
d
/
perl
/
perl-4.000
/
perl-4
/
perl-4.036
/
atarist
/
test
/
printenv
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-02-08
|
242 b
|
17 lines
$exit = 0;
$\ = "\n";
if($#ARGV >= 0) {
foreach (@ARGV) {
if(defined $ENV{$_}) {
print $ENV{$_};
} else {
$exit = 1;
}
}
} else {
foreach (sort keys %ENV) {
print $_, '=', $ENV{$_};
}
}
exit $exit;