in reply to Incompatibility after perl 5.10 packing and UTF-8 strings
How to identify incompatible use of pack and unpack. And how to fix it for following examples if they are incompatible uses. I want to use code around it in perl 5.22. This is present in perl 5.8 currently and working fine. I dont know if it will break or work when I upgrade perl to v5.22
pack("$L", unpack("$L", $_) sprintf("%08x", unpack("N",function($relay))); push(@rv, join('.', unpack("CCCC", function($i)))); unpack("u", $len . $1 ); unpack("w*", $v); unpack("V", $v) == 1 unpack("x$start_offset x4 $L$L$L$L$S$S$L$L", $file); unpack("x$d_off $S/a", $file); unpack("H*", shift);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pack unpack incompatibility issue
by davido (Cardinal) on Aug 03, 2022 at 19:56 UTC | |
|
Re: pack unpack incompatibility issue
by ikegami (Patriarch) on Aug 03, 2022 at 20:33 UTC | |
|
Re: pack unpack incompatibility issue
by LanX (Saint) on Aug 03, 2022 at 20:54 UTC | |
|
Re: pack unpack incompatibility issue
by afoken (Chancellor) on Aug 04, 2022 at 16:49 UTC |