Applying the ...=~/./g trick (which you already used once inside the map) again:
sub w{for$;(-2..0){say map{substr' _ _|_ |_| |',2*ord(('u$SR,Z]dmj'=~/./g)[$_])>>-3*$;&14,3}$_[0]=~/./g}}
In reply to Re^2: Golf: Seven segment display
by PrakashK
in thread Golf: Seven segment display
by kikuchiyo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |