good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Math::Base - arithmetics with baseX integers (OP updated)by shmem (Chancellor) |
on Aug 23, 2017 at 12:16 UTC ( [id://1197867]=note: print w/replies, xml ) | Need Help?? |
What I did is to mimic the behavior of sprintf and hex in encode(), i.e. roll over:
And the return line now reads:
I've updated the op with the new version. Thanks for your hints!
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Cool Uses for Perl
|
|