It does not pass it back to subroutine_2 but should give you a rough idea of how things like these work.sub subroutine_1 { my $val = subroutine_2(); print "$val this is subroutine_2 output!"; } sub subroutine_2 { return "w00t!"; }
In reply to Re^3: To call a sub from another sub
by jkva
in thread To call a sub from another sub
by tamaguchi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |