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.
faas template pull https://github.com/openfaas-incubator/perl-template
faas new --lang perl hello-perlThis will generate:
hello-perl.yml
hello-perl/Handler.pmYou 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.