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
- Host: GitHub
- URL: https://github.com/echo2echo/perl-cgi-test
- Owner: echo2echo
- License: gpl-3.0
- Created: 2025-02-07T19:42:33.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-02-16T23:10:13.000Z (12 months ago)
- Last Synced: 2025-02-16T23:27:27.342Z (12 months ago)
- Topics: cg-bin, cgi, perl, perlbrew, testing
- Language: Perl
- Homepage: https://joelrader.net/cgi-bin/github/perl-cgi-test.pl
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ]