![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Defining Subroutinesby @rocks (Scribe) |
on Oct 24, 2002 at 02:51 UTC ( #207610=perlquestion: print w/replies, xml ) | Need Help?? |
@rocks has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Monks, I just wanted to get something straight that I read in Learning Perl 3rd Edition. I am on Chapter 4 Subroutines. I am wondering if after you define a subroutine with the & character that I can just say sub then the subroutine. For example can I....
and then after I have defined that subroutine can I run it later in the script by just saying.... sub max that is my question. Can I? Also, if you have any extra time please tell me what it mean when you can "omit the ampersand" when using subroutines. Is it like I said when you say "Sub max", or something totally different? -@rocks
Back to
Seekers of Perl Wisdom
|
|