in reply to Re^3: Unpack unexpectedly trimming trailing spaces
in thread Unpack unexpectedly trimming trailing spaces

Even though unpack states to look to pack for further info, would it be a sensible use of time if I updated unpack to reflect at least info that's directly relevant? Thoughts?

My thinking is that it might not be overly clear if someone uses unpack without using pack first.

Replies are listed 'Best First'.
Re^5: Unpack unexpectedly trimming trailing spaces
by AnomalousMonk (Archbishop) on Nov 21, 2015 at 17:09 UTC
    ... info that's directly relevant ...

    Info that's directly relevant to unpack? The unpack docs already seem to have a lot (all?) of that. What did you have in mind? The first sentence in unpack already says "unpack does the reverse of pack ...". There is little discussion of the  TEMPLATE and its specifiers, but then in the fourth paragraph, this: 'The TEMPLATE has the same format as in the "pack" function.'

    It might be more newbie-frendly if, in each pack/unpack documentation entry, there were, very close to the beginning, a paragraph to the effect

    "pack and unpack are complementary functions; please consult (un)pack and perlpacktut for a full understanding of these functions."
    but I'm not sure this would necessarily be much more helpful than what is already there; at some point, one must just carefully RTFM.

    Update: Fixed mispeling: complemenetary vice complementary.


    Give a man a fish:  <%-{-{-{-<