in reply to Re^2: Creating a perl script for database monitoring
in thread Creating a perl script for database monitoring

Thats because when you change foreach $data ( @$data) { to foreach my $thisone ( @$data) {, you must also change (my $variable1,my $variable2,my $variable3) = @$data; to (my $variable1,my $variable2,my $variable3) = @$thisone; and change check    => $data, to check    => $thisone,