zeltus has asked for the wisdom of the Perl Monks concerning the following question:
Looking thru' some legacy code I have to support, I have come across entries like...
$variable = bless( do{\(my $x = 49)}, 'Rates::Notification
I am unclear what the 'do' is for
I have a vague memory of tutorials involving inside-out programming, blessing of scalars and such-like which I think have a bearing on this, but my memory is shot and I can't remember anything else.
Can a Monk put me out of my misery and explain why this was used and why it should (or shouldn't) be used today?
thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Bless and Do
by kennethk (Abbot) on Jun 17, 2014 at 16:08 UTC | |
by Anonymous Monk on Jun 17, 2014 at 20:20 UTC | |
by Anonymous Monk on Jun 18, 2014 at 00:00 UTC | |
by LanX (Saint) on Jun 18, 2014 at 00:25 UTC | |
by Anonymous Monk on Jun 18, 2014 at 01:25 UTC | |
by LanX (Saint) on Jun 18, 2014 at 01:37 UTC | |
| |
Re: Bless and Do
by LanX (Saint) on Jun 17, 2014 at 16:08 UTC | |
Re: Bless and Do
by NetWallah (Canon) on Jun 17, 2014 at 17:03 UTC | |
Re: Bless and Do
by Bloodnok (Vicar) on Jun 17, 2014 at 17:06 UTC |
Back to
Seekers of Perl Wisdom