Skip to content
Perl template for OpenFaaS
Dockerfile Perl
Branch: master
Clone or download
zeerorg and alexellis Fixed cpan error
Signed-off-by: Rishabh Gupta <r.g.gupta@outlook.com>
Latest commit 6a3e4c1 May 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
template/perl
.DEREK.yml
.dockerignore
.gitignore
LICENSE
README.md

README.md

Perl template for OpenFaaS

This repository contains a Perl language template for OpenFaaS developed by the community. If you wish to make suggestions or improvements, please propose them with an issue in this repository.

Trying the template

faas template pull https://github.com/openfaas-incubator/perl-template
faas new --lang perl hello-perl

This will generate:

hello-perl.yml
hello-perl/Handler.pm

You can then implement your handler:

package Handler;
use strict;
use warnings;

sub handle {
    my $st = shift;
    return "Hello $st !";
}

1;

Finally, when ready run faas-cli up -f hello-perl.

You can’t perform that action at this time.