foreach my $line (@results) { my ($first, $second, $third) = split(/::/, $line); print "ERROR: \$third is empty!\n" unless $third; print qq($first $third
); }