Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "Network (32 bits) pack/unpack: ", unpack ('N', pack ('N', -1)),
    + "\n";
    print "Long pack/unpack: ", unpack ('l', pack ('l', -1)), "\n";
    print "Network (cvt) pack/unpack: ", unpack ('s', pack ('s', unpack ('
    +n', pack ('n', -1)))), "\n";
    
  2. or download this
    Network (16 bits) pack/unpack: 65535
    Short pack/unpack: -1
    Network (32 bits) pack/unpack: 4294967295
    Long pack/unpack: -1
    Network (cvt) pack/unpack: -1