|
|
| P is for Practical | |
| PerlMonks |
a sub within a sub -- revisitingby punkish (Priest) |
| on Apr 10, 2010 at 03:59 UTC ( #833941=perlquestion: print w/ replies, xml ) | Need Help?? |
|
punkish has asked for the
wisdom of the Perl Monks concerning the following question:
I read Defining a sub within a sub: OK? with interest, but consider the following
The above works, but what all sentiments and principles am I violating here? (besides, of course, Blond highlights with a hint of purple are just "so 2007 Essentially, bar() will never be called from outside foo(), and makes sense only within the context of foo(). In case I shouldn't be doing the above, then how should I rewrite it?
--
when small people start casting long shadows, it is time to go to bed
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||