Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Although this is true, I think that it would be more instructive to indicate what the 1; statement does, and why it is neccessary for the package to work. The module has to return something to indicate success ie. a non-zero/null value. Someone new to the language might not know that by default perl will return the value of last statement. Perhaps you should use an explicit return statement, something like:
Rather than just mentioning that there are other tutorials available, it would also be useful to link to some of them from this post. </ajdelore> In reply to Re: A simple example OO script for total beginners
by ajdelore
|
|