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

Re: Is the documentation for Perl 5.20 'pack' correct?

by flexvault (Monsignor)
on Jul 07, 2015 at 23:12 UTC ( [id://1133657]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    #
    ...
     $Nonnetnumber = pack( "L", $decnumber );         # as native format
    
     print "Dec: $decnumber  is  'L': '",unpack("H8",$Nonnetnumber),"'  as
    + native format\n";
    
  2. or download this
    On Aix 5.2 on RS/6000 ( powerpc-ibm-aix5.2.0.0 )
    
    ...
    Dec: 16909060  is  'V': '04030201'  as Vax or Little-endian
    Dec: 16909060  is  'L': '04030201'  as native format
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found