in reply to Several stupid questions about subs

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.


Be Appropriate && Follow Your Curiosity
  • Comment on Re: Several stupid questions about subs