diff options
author | Andrei Belov <defan@nginx.com> | 2018-02-07 17:26:37 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2018-02-07 17:26:37 +0300 |
commit | 539caf0946d2a5881ffaa34481f63c1bc67be96d (patch) | |
tree | 829ffba6d9f84d94e5abe742a299521e41f38268 /pkg/deb/debian.module/unit.example-perl-app | |
parent | 78300263685f9e1037038a3d20ed15f41e52dd3d (diff) | |
download | unit-539caf0946d2a5881ffaa34481f63c1bc67be96d.tar.gz unit-539caf0946d2a5881ffaa34481f63c1bc67be96d.tar.bz2 |
Packages: added Perl package.
Diffstat (limited to 'pkg/deb/debian.module/unit.example-perl-app')
-rw-r--r-- | pkg/deb/debian.module/unit.example-perl-app | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/deb/debian.module/unit.example-perl-app b/pkg/deb/debian.module/unit.example-perl-app new file mode 100644 index 00000000..33be1d3e --- /dev/null +++ b/pkg/deb/debian.module/unit.example-perl-app @@ -0,0 +1,12 @@ +#!/usr/bin/env perl + +use Data::Dumper; + +my $app = sub { + my $env = shift; + return [ + '200', + [ 'Content-Type' => 'text/plain' ], + [ "Hello from Unit, Perl $^V, environment:\n\n", Dumper($env) ], + ]; +}; |