@structure = ('test,test,n','test,test,n','test,test,n','test,test,n','test,test,n');
while ($condition > 0){
$loop_again = 0;
foreach $item (@structure){
@data_info = split(/,/, $item);
if ($data_info[2] eq "n"{
$loop_again = 1;
last;
}
}
if ($loop_again == 1){
#####@structure = get_structure1(@structure);
}else{
$condition = -1;
}
$condition = 1;
}
when then code is ran it throws an error:
Use of uninitialized value in numeric gt (>) at ./test.pl line 123.
Why is it throwing a error and how do I fix it.
while ($condition > 0){
$loop_again = 0;
foreach $item (@structure){
@data_info = split(/,/, $item);
if ($data_info[2] eq "n"{
$loop_again = 1;
last;
}
}
if ($loop_again == 1){
#####@structure = get_structure1(@structure);
}else{
$condition = -1;
}
$condition = 1;
}
when then code is ran it throws an error:
Use of uninitialized value in numeric gt (>) at ./test.pl line 123.
Why is it throwing a error and how do I fix it.