Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Experimenting with Lvalue Subs

by fergal (Chaplain)
on Jan 24, 2005 at 23:29 UTC ( [id://424739]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Experimenting with Lvalue Subs
in thread Experimenting with Lvalue Subs

Indeed, sorry for not reading more carefully. However my comment isn't entirely void, have a look at Apocalypse 6 where Larry says that lvalue subs will not get to see their rvalue unless they use tieing
If you need to do pre- or post-processing on the "public" value, however, you'll need to return a tied proxy variable.
and he also said that the tieing will be easy. He has other plans (temporizing - basically a tie interface to local) that would break if it was done the way you want.

There's still also the issue of potentially surprising order of evaluation.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://424739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found