Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Understanding Unpack on Decimal Value

by choroba (Cardinal)
on Nov 01, 2018 at 21:51 UTC ( [id://1225077] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $input (9_999_990 .. 10_000_010) {
        my @unpacked = unpack 'VV', $input;
        say scalar @unpacked, " $input";
    }
    
  2. 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,