mirror of
https://github.com/dockersrc/scripts
synced 2024-11-24 23:23:06 -05:00
13 lines
251 B
Plaintext
13 lines
251 B
Plaintext
|
#!/usr/bin/env perl
|
||
|
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
|
||
|
print "Content-type: text/plain; charset=iso-8859-1\n\n";
|
||
|
foreach my $var (sort(keys(%ENV))) {
|
||
|
my $val = $ENV{$var};
|
||
|
$val =~ s|\n|\\n|g;
|
||
|
$val =~ s|"|\\"|g;
|
||
|
print "${var}=\"${val}\"\n";
|
||
|
}
|