Skip to content

Instantly share code, notes, and snippets.

@sironekotoro
Created March 12, 2021 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sironekotoro/8d56daf85af67648e2e848eee3190ec7 to your computer and use it in GitHub Desktop.
Save sironekotoro/8d56daf85af67648e2e848eee3190ec7 to your computer and use it in GitHub Desktop.
Running Perl with AWS Lambda #2
#!/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