[sf-perl] Meaning of an asterisk (*)
Randy J. Ray
rjray at blackperl.com
Tue Feb 26 13:13:37 PST 2008
nheller at silcon.com wrote:
> Thank you for your response.
> You said that the final block of code was an error.
> How would you change it so that it is well-written?
He mentioned the problem-- there shouldn't be a semi-colon (';') immediately
after the word 'sub'. It should be:
*SongPlayer::system = sub
{
@args = @_;
return $fail;
};
(It might be clearer if the opening brace were on the same line as "sub"...)
--
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Randy J. Ray Sunnyvale, CA http://www.rjray.org rjray at blackperl.com
Silicon Valley Scale Modelers: http://www.svsm.org
More information about the SanFrancisco-pm
mailing list