diff options
Diffstat (limited to '')
-rw-r--r-- | pkg/rpm/rpmbuild/SOURCES/unit.example-perl-app | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.example-perl-app b/pkg/rpm/rpmbuild/SOURCES/unit.example-perl-app new file mode 100644 index 00000000..33be1d3e --- /dev/null +++ b/pkg/rpm/rpmbuild/SOURCES/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) ], + ]; +}; |