Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Action at a distance (updated)

by ikegami (Patriarch)
on Nov 03, 2022 at 14:15 UTC ( [id://11147943]=note: print w/replies, xml ) Need Help??


in reply to Re: Action at a distance (updated)
in thread Action at a distance

You can overload = to get the desired effect. But that only works if you have immutable objects.

Replies are listed 'Best First'.
Re^3: Action at a distance (updated)
by LanX (Saint) on Nov 03, 2022 at 14:24 UTC
    > You can overload = to get the desired effect.

    Not sure what you mean, the reason why I've put "overload" in double-quotes is that it's not possible to change° assignment via overload.

    One needs to tie the obj-ref too, see the linked doc.

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery

    update

    °) well, not the immediate assignment, see Re^3: Action at a distance

      Sorry, I hadn't read the post script. I was replying to the tie bit.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-25 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found