in reply to The cognitive load of generated code

I'm not sure about "production-ready". Why is the filename "0" shortened to undef? ;-)

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: The cognitive load of generated code
by Anonymous Monk on May 18, 2026 at 16:46 UTC
    I love how much smarter you are than me and that dummy claude choroba! I have a bad habit of avoiding // because it can give me an extra 10 years of backwards compatibility, just in case anyone is still using anything older than v5.10.0. As you've seen, this probably poor decision, makes zero the bane of my existence; but it was a fun minute-long puzzle to fix the bug:
    my $f = defined $_[0] ? shift : return;