FalseVinylShrub has asked for the wisdom of the Perl Monks concerning the following question:
Hi
In some code I've been asked to maintain, a movable type plugin, I came across this code:
my TheSchwartz::Job $job = shift;
Googling finds that this exact snippet of code occurs in TheSchwartz documentation and has been copied into many other pages. However, not knowing what this construct is called, I've not been able to find any documentation that explains what, if anything, this does.
Does anyone know what this is called, what it means, any reasons to use or not use it?
Many thanks
FalseVinylShrub
Disclaimer: Please review and test code, and use at your own risk... If I answer a question, I would like to hear if and how you solved your problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Specifying the class of an object in the declaration
by Anonyrnous Monk (Hermit) on Jan 13, 2011 at 13:07 UTC | |
by FalseVinylShrub (Chaplain) on Jan 14, 2011 at 12:42 UTC | |
|
Re: Specifying the class of an object in the declaration
by ELISHEVA (Prior) on Jan 13, 2011 at 12:45 UTC | |
by FalseVinylShrub (Chaplain) on Jan 13, 2011 at 12:54 UTC | |
by ELISHEVA (Prior) on Jan 13, 2011 at 13:11 UTC | |
by FalseVinylShrub (Chaplain) on Jan 14, 2011 at 09:37 UTC |