I am starting to learn Perl, and have questions on the following segment of Perl code.
I know "my" is used to define a local variable, and "shift" is used for getting the head element from an array. What confused me is that where does array come from in the following code segment.
Besides, what does my @positives = keys %{$lab1->{$cate1}}
stand for?
preData($cate1, $lab1)
sub preData
{
my $cate1 = shift;
my $lab1 = shift;
my @positives = keys %{$lab1->{$cate1}};
}