bory has asked for the wisdom of the Perl Monks concerning the following question:
in the @a array i want to put the values that come from the command. The problem is that i want to print each value from the array in a separate table cell but i can't! in this way @a looks like this @a=ABC and puts ABC in the same cell and i want to put A in a cell, B in other cel, and C in other cel! I've tried with $a[0], $a[1], $a[2] but it also writes ABC at each!#!/agl/tools/perl/bin/perl my @a=qx (rsh -l sonaxisz 'source.login ; findbug -p | sort -u | %s se +rver); print "Content-type:text/html\n\n"; print "<html><body>"; print "<table>"; print "<tr><td>@a<td><tr>"; print "</table></body></html>";
Janitored by ybiC: Replace literal [ and ] with [ and &$093; to avoid PM-linking.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array problem
by katgirl (Hermit) on Sep 12, 2003 at 12:55 UTC | |
by bory (Beadle) on Sep 12, 2003 at 13:06 UTC | |
by LordWeber (Monk) on Sep 12, 2003 at 13:48 UTC | |
by welchavw (Pilgrim) on Sep 12, 2003 at 15:47 UTC | |
|
Re: array problem
by Abigail-II (Bishop) on Sep 12, 2003 at 12:57 UTC | |
|
Re: array problem
by bart (Canon) on Sep 12, 2003 at 12:39 UTC | |
by bory (Beadle) on Sep 12, 2003 at 12:54 UTC | |
by bart (Canon) on Sep 12, 2003 at 16:43 UTC | |
|
Re: array problem
by Roger (Parson) on Sep 12, 2003 at 13:27 UTC | |
|
Re: array problem
by TomDLux (Vicar) on Sep 13, 2003 at 16:31 UTC |