more useful options | |
PerlMonks |
Re^7: Shouldn't references be readonly?by jcb (Parson) |
on Aug 05, 2020 at 22:18 UTC ( [id://11120377]=note: print w/replies, xml ) | Need Help?? |
you are aware that "constructor" isn't even mentioned in your definition? ;) Yes, that is what I misremembered: perlref calls them "composers" but they act just like constructors. :-) Calling it a "constructor" is a hint that it does something at runtime, instead of being a literal embedded into the program text. That its return value is mutable should not be a surprise.
In Section
Seekers of Perl Wisdom
|
|