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

Re^3: Equivalent of unpack 'q' with 32-bit Perl (a8)

by Anonymous Monk
on Sep 06, 2016 at 22:36 UTC ( [id://1171277]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      print hex("0x1234567890123490"),"\n"; # Perl v5.10.0 or later
    
  2. or download this
    use constant CAN_PACK_QUADS => !! eval { my $f = pack 'q'; 1 };
    use Math::BigInt;
    print quad('ffffffffffff'), "\n";
    ...
        : Math::BigInt->new( '0x'.$_[0] )
    }
    __END__
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-05-22 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found