aoc2022

Advent of Code 2022 solutions in Perl.
git clone git://git.samirparikh.com/aoc2022
Log | Files | Refs | README

README.md (513B) - raw


      1 This repository contains my attempt to solve the 2022 edition of the [Advent of Code](https://adventofcode.com/2022)
      2 challenge using Perl 5.
      3 
      4 Note:  For this set of puzzles, I decided to read the entire input file into a scalar variable (i.e. slurp the file).
      5 To do this, you'll see the following near the beginning of each file:
      6 
      7     chomp( my $input = do { local $/; <> } );
      8 
      9 More information regarding this syntax can be found here:
     10 https://www.perl.com/article/21/2013/4/21/Read-an-entire-file-into-a-string/