![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: Golf: Seven segment displayby PrakashK (Pilgrim) |
on Jan 23, 2012 at 20:30 UTC ( [id://949520]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|