it doesn't seem to work correctly ... it runs into difficulty
These aren't really useful descriptions of the problem, sorry. Since you haven't shown how you are calling the sub, much less provided an SSCCE, it's pretty hard to help.
Update: That said, your sub doesn't return anything, perhaps that's the problem? Without an SSCCE it's still just a guess however.
In reply to Re: Perl variable scoping between functions
by hippo
in thread Perl variable scoping between functions
by Bryan882
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |