diff options
author | cflip <cflip@cflip.net> | 2022-09-19 22:21:44 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-09-19 22:21:44 -0600 |
commit | 08a43acee041e6de83c5b9e8c16265fa2de0983e (patch) | |
tree | 190669a449f8f12c8b552330a68dd3d8a99876c6 /envtest.pl | |
parent | 8ce7db9ba907ad4e826c826af898e1864f25f7bb (diff) |
Add a simple Perl script that prints out all environment varaiables
This can be used to view the values of environment variables passed to
CGI scripts.
Diffstat (limited to 'envtest.pl')
-rwxr-xr-x | envtest.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/envtest.pl b/envtest.pl new file mode 100755 index 0000000..4cd5e8d --- /dev/null +++ b/envtest.pl @@ -0,0 +1,6 @@ +#!/usr/bin/perl +print "Content-Type: text/plain\n\n"; +foreach (sort keys %ENV) { + print "$_: $ENV{$_}\n"; +} +1; |