Error Message:
Invalid data set: 0 at D:\New\TOOL\graph.pl line 24.
Problem Code:
my @a1;
my @a2 = [-9,8,0,1,-2,-5,6,-4,3,7];
foreach my $i (1..10)
{
push @a1, $i;
}
my @data = (
@a1,
@a2
);
Solution:
my @a1;
my @a2 = [-9,8,0,1,-2,-5,6,-4,3,7];
foreach my $i (1..10)
{
push @a1, $i;
}
my @data = (
[@a1],
@a2
);
Invalid data set: 0 at D:\New\TOOL\graph.pl line 24.
Problem Code:
my @a1;
my @a2 = [-9,8,0,1,-2,-5,6,-4,3,7];
foreach my $i (1..10)
{
push @a1, $i;
}
my @data = (
@a1,
@a2
);
Solution:
my @a1;
my @a2 = [-9,8,0,1,-2,-5,6,-4,3,7];
foreach my $i (1..10)
{
push @a1, $i;
}
my @data = (
[@a1],
@a2
);