Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: pack() returns an unusable string

by syphilis (Archbishop)
on May 27, 2021 at 13:50 UTC ( [id://11133130]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\>perl -wle "print unpack 'H*', pack 'D', 2.4;"
    9a999999999999990040000000000000
    
  2. or download this
    C:\>perl -wle "print unpack 'H*', pack 'D', 2.4;"
    00989999999999990040000000000000
    
  3. or download this
    use warnings;
    
    ...
    # Now pass $p to the 'double' build of perl.
    $double_perl = "C:/perl-5.34.0/bin/MSWin32-x64-multi-thread/perl.exe";
    system $double_perl, '-wle', "print unpack('H*', $s);";
    
  4. or download this
    use warnings;
    
    ...
    binmode(WR);
    print WR $p;
    close WR or die "Closing: $!";
    
  5. or download this
    use warnings;
    
    ...
    close RD or die "Closing: $!";
    
    print unpack("H*", $p);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-24 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found