go ahead... be a heretic | |
PerlMonks |
Re: Does perl offer an auto incremental assigning of constants, like Swift?by choroba (Cardinal) |
on Apr 17, 2022 at 18:15 UTC ( [id://11143025]=note: print w/replies, xml ) | Need Help?? |
enum can do that any many more (e.g. bitmask constants).
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|