From f837717da7e44eb2de14c3ceeac504cf4d051a73 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Wed, 21 Dec 2022 08:56:22 +0100 Subject: [PATCH] Day 6: cleanup --- 2022/11.pl | 11 +++++++++++ 2022/{12a.pl => 12.pl} | 0 2 files changed, 11 insertions(+) create mode 100755 2022/11.pl rename 2022/{12a.pl => 12.pl} (100%) diff --git a/2022/11.pl b/2022/11.pl new file mode 100755 index 0000000..955dd52 --- /dev/null +++ b/2022/11.pl @@ -0,0 +1,11 @@ +#!/usr/bin/perl -w + +use v5.36; +use strict; +use experimental 'multidimensional'; + +chomp($_ = <>); +my $i; +s/^.//, $i++ while substr($_, 0, 4) =~ /(.).*\1/; +say $i + 4; + diff --git a/2022/12a.pl b/2022/12.pl similarity index 100% rename from 2022/12a.pl rename to 2022/12.pl -- 2.43.5