Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.02 KB

README.md

File metadata and controls

19 lines (11 loc) · 1.02 KB

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 ]