Keep It Simple, Stupid | |
PerlMonks |
Re^3: What does this mean?by moritz (Cardinal) |
on Aug 21, 2012 at 07:14 UTC ( [id://988613]=note: print w/replies, xml ) | Need Help?? |
$$self{_id} //= $id; checks the definedness of $$self{_id}, not of $id (as the other suggested snippets do), so it does something completely different (never reset the attribute, instead of prevent assignment of an undefined id).
In Section
Seekers of Perl Wisdom
|
|