in reply to Re: Bless a string
in thread Bless a string
Usage of a reference is no option because too many existing files are manipulating the scalar itself.
Blessing a string is possible (done by that MongoDB module), even if I usually don't like it.
bless should always use the two-argument-form, see Perl::Critic::Policy::ClassHierarchies::ProhibitOneArgBless
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bless a string
by moritz (Cardinal) on Dec 01, 2011 at 12:57 UTC | |
|
Re^3: Bless a string
by Eliya (Vicar) on Dec 01, 2011 at 12:49 UTC |