Re:Russ Cox AoC 2021 Day 10 – Perl REPL
by adm3a on Tuesday December 21, 2021 @02:21PM
(#29641001)
The entire playlist of Russ doing AoC this year has been great. Using a combination of ivy, perl, awk, sam, and acme. Normally I focus on writing small scripts or programs to complete each day but using a REPL or similar interactive environment to reach the answer is a neat solution I had not thought of.
perl -e 'while(<>) { print eval, "\n\n" }'
Puts you at the step debugger command line, effectively a REPL.
Or use reply: https://metacpan.org/dist/Reply/view/bin/reply
Or use re.pl, included with Devel::REPL: https://metacpan.org/pod/Devel::REPL