P is for Practical | |
PerlMonks |
Re^2: Dualvars besides $!by ikegami (Patriarch) |
on Jan 27, 2014 at 20:01 UTC ( [id://1072269]=note: print w/replies, xml ) | Need Help?? |
The latest Scalar::Util::isdual considers FLAGS = (GMG,SMG,pNOK,pPOK) to be a dualvar. (No idea about earlier versions, but I suspect it's the same.) The docs are wrong. The following returns 1 for both 5.8.9 and 5.18.1, while the docs say it returns false:
Nit: $! is magical (like tied variables), but it's not a tied variable like the docs say.
In Section
Seekers of Perl Wisdom
|
|