Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: pack on unpack with same templateby syphilis (Archbishop) |
on Jul 28, 2021 at 03:54 UTC ( [id://11135415]=note: print w/replies, xml ) | Need Help?? |
Are there special cases of any sort (e.g. different environments, architectures) where the pack/unpack achieve anything different ? I don't know of any such examples wrt to the U0C* template. But I'm pretty unknowledgeable when it comes to Unicode, so I likely wouldn't know anyway ;-) In general, there are some instances where pack($template, $scalar) will lose information that unpack() has no hope of restoring. For example, on a perl whose $Config{nvsize} is greater than $Config{doublesize}: A similar thing could happen with the I or i templates on a perl whose $Config{ivsize} is greater than $Config{intsize}. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|