From dd409d663f8675eb47bd70f8b221f7c31b3b74df Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Sat, 8 Dec 2018 16:09:44 -0500 Subject: [PATCH] day8 --- 2018/08/sol1.pl | 18 ++++++++++++++++++ 2018/08/test.txt | 1 + 2 files changed, 19 insertions(+) create mode 100644 2018/08/sol1.pl create mode 100644 2018/08/test.txt diff --git a/2018/08/sol1.pl b/2018/08/sol1.pl new file mode 100644 index 0000000..ff67a2e --- /dev/null +++ b/2018/08/sol1.pl @@ -0,0 +1,18 @@ +use 5.20.0; +use warnings; +use experimental qw/ + signatures + postderef +/; + +my @input = split / /, <>; + +parse_metadata(@input); + +sub parse_metadata($nbr_children, $nbr_metadata, @payload) { + my @meta; + push @meta, pop @payload for 1..$nbr_metadata; + + + +} diff --git a/2018/08/test.txt b/2018/08/test.txt new file mode 100644 index 0000000..4279f52 --- /dev/null +++ b/2018/08/test.txt @@ -0,0 +1 @@ +2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2