My referencing for @bonly is getting screwed up.
How is it "getting screwed up"? What is it doing that it is not supposed to be doing? Or what is it not doing that it is supposed to be doing?
my $bonly_ref = shift; # input array Bonly my @my_bonly = @$bonly_ref; # input array Bonly ... @my_bonly = (); # create null arrays
Why bother assigning anything to @my_bonly if you are just going to clear it out anyway?
my (%count, @isec, @diff, @union, @aonly) = ();
What do you think that the = () at the end of that statment is doing? What did you intend for it to do?
In reply to Re: Referencing in Function not working correctly.
by jwkrahn
in thread Referencing in Function not working correctly.
by mr_p
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |