Skip to content

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

License

Notifications You must be signed in to change notification settings

echo2echo/perl-cgi-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 

Repository files navigation

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 ]

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages