Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Shortcut operator for $a->{'b'}=$b if $b;

by ikegami (Pope)
on Sep 21, 2005 at 05:28 UTC ( #493662=note: print w/replies, xml ) Need Help??


in reply to Re^4: Shortcut operator for $a->{'b'}=$b if $b;
in thread Shortcut operator for $a->{'b'}=$b if $b;

overload doesn't define operators; it redefines them. ?= would have to be added to perl by patch.

There is an alternative to a new or overloaded operator. One could use a tied hash. The only difference would be in the setter.

By the way, my function does not autovivify. At least, not in 5.6.x or 5.8.x.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://493662]
help
Chatterbox?
[stevieb]: debugged my first very low-level C memory issue within a shared library with gdb so I did :D
[stevieb]: problem was in my code, but through the debugger I figured out what was actually happening, and why. Pretty straight forward after a few hours of reading and testing

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2017-06-25 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (568 votes). Check out past polls.