in reply to Re: Returning from a subroutine.
in thread Returning from a subroutine.
You should start your Perl program with these two pragmas:EWRONGDOGMAThey will help you find mistakes in your code, like why $ofound is not visible at the end of the subroutine.use warnings; use strict;
Had the OP not used strict, and not use my, he wouldn't have had the problem. His problem is the overuse of my, as you point out. Adding either use warning; or use strict; does diddly-squat to solve the problem.
|
|---|