perl - Moose ArrayRef attribute returned as an Array -


I have a feature that is an array (for read only) and internally manipulates objects. But when an accelerator calls the method, I want it to not return an array (or list). It will not only deduct the amount of the difference that the user of the class has to do, but this would mean that they can not mistakenly tamper with the same referee who is using my object.

So what is the best way to do this? For some kind of extortion?

Usage and delegation, such as

  handles => {My_array = & gt; 'Elements'}  

(via doy on #moose)

A code in auto_deref is an undesirable behavior if you Caller scalar reference in the accelerator.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -