You should reply to a post as opposed to updating your original post with the reply - I only saw your response by accident.
While it's not incorrect syntax, you should call your subroutines without a leading ampersand (&) - see perlsub for details.
The warnings pragma is lexically scoped. Perhaps you have it hidden in a block somewhere - you haven't shown it so there's no way to tell if you've used the correct syntax. The documentation will tell you. You haven't shown use of the strict pragma either.
You're using two @reports arrays. Is that causing you some confusion? Is that what you intended? The first one might be global but you haven't shown enough code for me to tell.
You could test the values of variables with a simple print statement to see if what you think you're passing around is actually happening.
You need to show your output. It doesn't matter if it's going to the screen, saved in a log file or reported in some other fashion - you need to include it with your problem description.
Your code would be a lot easier to read if you used indentation - see perlstyle for some pointers in this regard.
Have you read How do I post a question effectively? There's a link to this page about 5 lines under the Preview button. It's there whenever you want to post a node. Please familiarise yourself with its contents.
-- Ken
In reply to Re: Return array not passed to sub call
by kcott
in thread Return array not passed to sub call
by begood321
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |