Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Understanding Unpack on Decimal Value

by choroba (Cardinal)
on Nov 01, 2018 at 21:05 UTC ( #1225074=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
             bytes              chars
    36353935 ----> 36 35 39 35  ---->  6 5 9 5
                                       | | | |
           first 4 digits      reverse | | | |
    595661 -------------> 5956 ------> 6 5 9 5
    
  2. or download this
    #! /usr/bin/perl
    use warnings;
    ...
                 2e4, 3e5, 4e6, 5e7, 6e8, 7e9, 8e10, 9e11, 2 ** 64 - 3;
    
    done_testing();
    
  3. or download this
    reverse($input) % 10_000
    
  4. or download this
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
    }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2023-09-27 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?