An open API service indexing awesome lists of open source software.

https://github.com/echo2echo/perl-cgi-test

Perl cgi-bin test script for system perl and perlbrew perls. Renders perl version, execution time and file last modified date and time
https://github.com/echo2echo/perl-cgi-test

cg-bin cgi perl perlbrew testing

Last synced: 3 months ago
JSON representation

Perl cgi-bin test script for system perl and perlbrew perls. Renders perl version, execution time and file last modified date and time

Awesome Lists containing this project

README

          

README for perl-cgi-test.pl

This perl script helps in testing a cgi-bin installation and has instructions to use system perl as well as perlbrew perls. The script lists the perl version being used, the execution time and the file last modified date and time

This perl cgi-bin script works as a cgi test file and works with your system perl and has an example for how to use perlbrew perls too. Basically change the shbang to use perlbrew perls.

To use perlbrew with a linux perl cgi-bin script change the shbang to something like the following...
#!/home/username/perl5/perlbrew/perls/perl-5.40.1/bin/perl

This file, perl-cgi-test.pl, was created and runs on Ubuntu Linux. It should be mostly portable using different versions of Linux and perl. The BSDs too.

The script uses two different perl version methods.

The script also prints filename, execution time and when the file was last updated

Add html to taste & use code blocks if useful in your own scripts.

Demo here...
[ https://joelrader.net/cgi-bin/github/perl-cgi-test.pl ]