- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

Character in '%c' format wrapped in unpack

(W unpack) You tried something like

unpack("H", "\x{2a1}")

where the format expects to process a byte (a character with a value below 256), but a higher value was provided instead. Perl uses the value modulus 256 instead, as if you had provided:

unpack("H", "\x{a1}")
ISBN 9781906966027Perl Language Reference ManualSee the print edition