in reply to Re^7: A short whishlist of Perl5 improvements leaping to Perl7
in thread A short whishlist of Perl5 improvements leaping to Perl7

I don't like state in named subroutines. It makes it hard to re´nitialise the variable and causes hard to debug problems. An anonymous sub is OK, because the state variable is re´nitialised every time the sub is created.

But in this particular case, it's not highly probable you'd ever need to re´nitialise the variable. But, if you plan to convert from different digit systems, you'll quickly see why state is not the solution.

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