Perl-Sensitive Sunglasses | |
PerlMonks |
Re: breaking open a scalar with unpack Pby ikegami (Patriarch) |
on Dec 22, 2010 at 23:34 UTC ( [id://878689]=note: print w/replies, xml ) | Need Help?? |
It's subject to breakage between Perl versions. Why not use B? Or if your just need a debugging or learning tool, I use Devel::Peek often. The last line is wrong, since it relies on the scalar being a certain kind of scalar.
Which "this"? Outside of the perl distro, there's illguts. One normally uses the macros and constants Perl provides in C, so one doesn't normally need to know the exact values.
No.
References to unblessed scalars always stringify to that format.
I've never heard of dualvar references, much less seen one. You couldn't have an RV/IV or RV/UV dualvar as RV, IV and UV share the same field of a scalar, but it seems possible to create an RV/NV or RV/PV dualvar. No idea how Perl would handle that.
In Section
Seekers of Perl Wisdom
|
|