http://qs321.pair.com?node_id=155429

Fingo has asked for the wisdom of the Perl Monks concerning the following question:

How would I make this code use the CGI.pm HTML interface?
print "<OL>"; foreach (@array){ print "<LI>$_</LI>"; } print "</OL>";

Replies are listed 'Best First'.
Re: Converting to CGI.pm
by rinceWind (Monsignor) on Mar 30, 2002 at 14:32 UTC
    Fingo, the pod associated with CGI.pm is quite extensive. However, just to give you a clue:
    print ol(li(\@array));
    does it all in one line.