I was having issues getting it to work - but then I moved from a one-liner to a program and suddenly the world was fine. I think that the similar action in new would work on your calls also.
Thank you: in view of the other answers the problem is not so much of a problem any more. Yet I was annoyed by not being able to use weaken appropriately, and you gave me an explicit example about how to put it to work. Thinking of your actual example code, anyway, makes me think that while weaken() is a precious tool, perhaps a more direct interface to the ref count of a reference could be desirable. Perhaps a lvalue refcount() function to be used (mostly) like thus:
refcount($ref)--;
Update - Just to double check I used the following lvalue based subref which worked also.
Well, I wouldn't have expected that to make a difference anyway...
In reply to Re^2: Agile syntax (abuse?)
by blazar
in thread Agile syntax (abuse?)
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |