zeerorg / perl-template

Perl template for OpenFaaS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Perl template for OpenFaaS

License:MIT License


Languages

Language:Dockerfile 63.1%Language:Perl 36.9%