I don't have sources for Perl4, but I do not see any reason why any libraries would be involved. Most of what pack & unpack do is bit and byte manipulations.

If you were using Perl5, I would suggest using perl -V to look for build/configuration changes, but never having used Perl4, I am not even sure if it had this switch.

Another possibility that would be revealing (in Perl5 at least), would be to dump and compare the key/value pairs of %Config. Here I've picked out a few of the possibly relevant ones:

perl -MConfig -wle" print $k, ' => ', defined $v ? $v : '[n/a]' while +($k,$v) = each %Config" archlibexp => c:\Perl\lib archname => MSWin32-x86-multi-thread cc => cl ccflags => -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE - cppflags => -DWIN32 dlsrc => dl_win32.xs dynamic_ext => Storable Encode XS/Typemap MIME/Base64 IO B/C Devel/P ... byteorder => 1234 ... i16size => 2 i16type => short i32size => 4 i32type => long i64size => 8 i64type => __int64 i8size => 1 i8type => char ... intsize => 4 issymlink => ivdformat => "ld" ivsize => 4 ivtype => long ... lddlflags => -dll -nologo -nodefaultlib -debug -opt:ref,icf -libpath: +"c:\Perl\lib\CORE" -machine:x86 ldflags => -nologo -nodefaultlib -debug -opt:ref,icf -libpath:"c:\Per +l\lib\CORE" -machine:x86 ... loclibpth => /usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib / +usr/GNU/lib /opt/GNU/lib longdblsize => 10 longlongsize => 8 ... perllibs => oldnames.lib kernel32.lib user32.lib gdi32.lib winspool. +lib ... ...

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

In reply to Re^7: Pack function by BrowserUk
in thread Pack function by vrajan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.