in reply to Several stupid questions about subs
2) use my to scope all variables; limit scope to smallest practical enclosing block
3)
in all scriptsuse strict; use warnings;
4) Get a copy of "The Camel" (Programming Perl, 3e); if you're completely new to programming you may find Learning Perl helpful too.
5) There is a return statement, see references in #4
-Greg
|
|---|