Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: converting binary to decimal

by ysth (Canon)
on Jun 26, 2025 at 19:23 UTC ( [id://11165477]=note: print w/replies, xml ) Need Help??


in reply to Re^2: converting binary to decimal
in thread converting binary to decimal

You seem to be running an extremely old version of perl. Try changing it it:
(my $decimal = join '', map sprintf('%0*d', $size, $_), reverse @numbe +r) =~ s/0+(?=.)//;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11165477]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2026-01-12 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (116 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.