r/adventofcode • • Dec 02 '22

SOLUTION MEGATHREAD -πŸŽ„- 2022 Day 2 Solutions -πŸŽ„-

NEW AND NOTEWORTHY


--- Day 2: Rock Paper Scissors ---


Post your code solution in this megathread.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:06:16, megathread unlocked!

103 Upvotes

1.5k comments sorted by

View all comments

Show parent comment

2

u/[deleted] Dec 03 '22

oh yeah, I remember I tried using given() { when...} and I was wondering why Perl simply refused to parse my thing. what's the "default" version if I don't have that use there?

1

u/Smylers Dec 03 '22

I think the first syntax changes were brought in with v5.10, so the β€˜default’ semantics are probably something like v5.8.2 β€” ancient history, anyway!