|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: variable subroutine callby meraxes (Friar) |
| on Dec 12, 2007 at 01:15 UTC ( #656527=note: print w/ replies, xml ) | Need Help?? |
|
In a word: yup.
The "hi" and "bye" are anonymous subroutines whereas whoops is executing via a reference to say_whoops(). I've stored the references in a hash simply because it's quick and easy though there are other ways. You can even pass them arguments! Take a look at perlsub for all the specifics.
-- meraxes
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||