1) yes, this is where my* comes in.
2) you could read the perlsub man page and search for the word return and be pleased to know that perl subs return a value. You get to choose which one.
The perlsub page really is a good starting point.
Edit * for the scope of your question and the assumed use case. See other response for helpful scoping tutorials.
In reply to Re: Several stupid questions about subs
by mikeraz
in thread Several stupid questions about subs
by bryan172
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |