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

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

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