From 08a43acee041e6de83c5b9e8c16265fa2de0983e Mon Sep 17 00:00:00 2001 From: cflip Date: Mon, 19 Sep 2022 22:21:44 -0600 Subject: 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. --- envtest.pl | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 envtest.pl 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; -- cgit v1.2.3