I don't think you can have it both ways. You either need to work around having a reference or live with the major memory requirement. I'm not an XS-guru, but it appears Data::Swap just does the reference stuff for you.
----
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Re: Re: How to swap scalar values without copies
by hardburn
in thread How to swap scalar values without copies
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |