Er... yes. It works exactly how you'd expect it to. Or, at least, how I'd expect it to. What did you try? What happened when you tried it?
sub a_subroutine { print "this is a subroutine\n"; } sub another_subroutine { print "this is another subroutine\n"; a_subroutine(); } another_subroutine();
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: To call a sub from another sub
by davorg
in thread To call a sub from another sub
by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |