in reply to The behavior of array and hash OPs

The magic is “references,” which are scalars too.

Perhaps you could elaborate on this “general-purpose wrapper,” and describe in more detail exactly how you intend for it to be used by C++ programmers ...

Replies are listed 'Best First'.
Re^2: The behavior of array and hash OPs
by llancet (Friar) on Jun 23, 2011 at 08:39 UTC
    Actually, not too "general". I attempt to design and use it as a scripting engine in a game.
    So, the typical usage would be: calling a perl sub with wrapped game object as argument.