Perhaps you want to use the backtick operator instead of do, as do will evaluate /usr/local/bin/pingtest.pl not execute it (similar but not the same). So you'll probably want something like this
my @values = `/usr/local/bin/pingtest.pl`;
chomp @values; # get rid of tricky newlines