[Israel.pm] Perl 5.10: new pack modifies: <>

Shmuel Fomberg semuelf at 012.net.il
Thu May 29 21:25:37 EEST 2008


Hi All.

Just found that some new modifies where added to pack's template:
< will declare a variable as little-endian,
and > will declare a variable as bin-endian.

Meaning, that you can write:
pack "s>", -43

Up until now only unsigned short and unsigned long had big/little endian 
handling. (nNvV) From 5.10 - every type can be.

Nice.

Shmuel.



More information about the Perl mailing list