I call several subroutines within my program.  The program is design in a
way that I don't expect my subroutines to return to the caller but to exit
once they have executed. 

At the moment I don't have exit or return at the end of my subroutines.

 

mysub(); # will the sub return here? If yes what happen if I don't capture
it and act?

....

.....

...

reset of the code

 

sub mysub{

       do this

      don that

      ...

     # I don't call exit or return

}

 

 

I understand a sub will normally implicitly return the last thing it
evaluation, but what happens if I don't act on what has been returned to the
caller? Will be programme stall because it doesn't know what to do next or
will it exit?

 

 Mimi

Reply via email to