in reply to Invalid SV name length in pad?

Under some circumnstances, perl uses the SvCUR length field of pad names to store other information. So you have to use strlen.

know this borders on (if it doesn't cross into) forbidden magic.

You are actually heavily into forbidden magic here. In perl 5.9.x, the way pads are maniplated has changed quite significantly, and your code most likely will no longer work.

Dave.

Replies are listed 'Best First'.
Re^2: Invalid SV name length in pad?
by 7th Kevin (Novice) on Jul 07, 2007 at 00:13 UTC

    OK, so I'm not going crazy. (Yet.) *Whew!*

    (And I'm aware this is likely to fail at any time...not planning on doing anything production-wise with it, just experimenting.)

    Thank you very much for demystifying me!