Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Blessing subrefs

by blazar (Canon)
on May 20, 2005 at 19:50 UTC ( #459107=note: print w/replies, xml ) Need Help??


in reply to Re: Blessing subrefs
in thread Blessing subrefs

Indeed. Certainly this is a downside that doesn't make this technique particularly suitable for those circumstances in which you may have to create many such objects. Of course speaking of it I'm more interested in its potential advantages momentarily disregarding memory efficiency issues...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://459107]
help
Chatterbox?
[Eily]: It can also be used to force a copy, and remove magic from a variable
[Eily]: there was a post some time ago about variable coming from regex taking more space than the same string defined directly IIRC
[Eily]: and if there's XS, make sure the scalar holds a string representation, that sounds like bad practice though (forcing that on the call side)
[choroba]: You should never pass $1 without double quotes to a sub

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-02-22 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (296 votes). Check out past polls.

    Notices?