Packages: added Perl package.
This commit is contained in:
12
pkg/rpm/rpmbuild/SOURCES/unit.example-perl-app
Normal file
12
pkg/rpm/rpmbuild/SOURCES/unit.example-perl-app
Normal file
@@ -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) ],
|
||||
];
|
||||
};
|
||||
Reference in New Issue
Block a user