News for hackers. Stuff that matters.
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.
Re:Russ Cox AoC 2021 Day 10 – Perl REPL by tsak on Tuesday December 21, 2021 @02:10PM (#29640860)
Telling Perl to REPL is absolutely insane:

perl -e 'while(<>) { print eval, "\n\n" }'

Re:Russ Cox AoC 2021 Day 10 – Perl REPL by mjgardner on Tuesday December 21, 2021 @04:14PM (#29642189)
perl -dE 0

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