Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Several stupid questions about subs

by mikeraz (Friar)
on Apr 13, 2011 at 16:18 UTC ( [id://899228]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://899228]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-26 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found