XP is just a number | |
PerlMonks |
Re: To call a sub from another subby jonadab (Parson) |
on Feb 02, 2006 at 12:19 UTC ( [id://527318]=note: print w/replies, xml ) | Need Help?? |
Yes, it'll work just fine. It will even work if the outer subroutine is a lexical closure and passes the other subroutine one of the lexically-retained references it is holding, like this:
Note: if you turn in code like that for homework, don't expect a good grade.
In Section
Seekers of Perl Wisdom
|
|