Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Pack decimal possibility

by chuckbutler (Prior)
on May 26, 2010 at 23:37 UTC ( #841848=note: print w/replies, xml ) Need Help??


in reply to Pack decimal possibility

There is a module, Convert::IBM390, that supports various conversion functions for data to/from a mainframe. One is packeb:

use Convert::IBM390 qw(packeb); my $comp3 = packeb( 'p4', 240 ); #77 A PIC S9(7) COMP-3. print $comp3; __END__ ~~output~~ 0x0000240c (of course, in binary)

It works well, and handles negative values.

Good luck. -c

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://841848]
help
Chatterbox?
[Veltro]: usemodperl This question was asked in 2011 https://stackoverf low.com/questions/ 8017508/solutions- to-convert-http- traffic-to-https- proxy-relay

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2018-06-24 17:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?