Skip to content

openfaas-incubator/perl-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published