in reply to CGI vs ASP
While something about the same in ASP would look more like this, although it's more PHP-ish and pseudocode:print qq(<table>) ; for my $a ( 1 .. 10 ) { print qq(<table><tr>) ; for my $b ( 1 .. 10 ) { my $c = $a * $b ; print qq(<td> $c </td>) ; } print qq(</tr>) ; } print qq(</table>) ;
You can do interesting things in the Visual-Basic-like Microsoft languages. I have. Writing them isn't nearly as pleasurable as writing them in Perl, which is why I'm not a VB-monk, assuming any such thing exists. But if you want the code-within-markup experience, and you have a Unix/Linux server around, PHP would good (and cheaper than MS licenses) solution. And there might be Perl things that do it, too, but I don't know of anything.<table> <? for my $a ( 1 .. 10 ) { ?> <tr> <? for my $b ( 1 .. 10 ) { ?> <td><? ($a * $b) ?></td> <? } ?> </tr> <? } ?> </table>
.sig goes here
|
|---|