Created
March 12, 2021 15:12
-
-
Save sironekotoro/8d56daf85af67648e2e848eee3190ec7 to your computer and use it in GitHub Desktop.
Running Perl with AWS Lambda #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
sub handler { | |
my ($payload, $context) = @_; | |
# 応答のハッシュに追加してみる | |
$payload->{hello} = "World!"; | |
warn "ログに出すときは warn を使う"; | |
return $payload; | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment