in reply to array problem

Hi, why don't you try something like:
my $return_value = `rsh ...`; # your command my @a = split /\s+/, $return_value; print "Content-type: text/html\n\n<html><body><table>\n"; foreach (@a) { print "<tr><td>$_</td></tr>\n" } print "</table></body></html>\n";
Assuming that your rsh command returns a set of values separated by spaces. Change the split pattern if the output of the rsh uses a different separator.