BernieC has asked for the wisdom of the Perl Monks concerning the following question:
and what it prints is correct but ugly :)my $htmlTEMP ; sub MakeHTML { my $spec = $_[0] ; $htmlTEMP = "" ; return &hl(sub{$htmlTEMP .= $_[0] ; }, $spec) ; } print MakeHTML([HTML => [BODY => [FORM => [LABEL => {for => "user"}, "Who are you?" +], [INPUT => {type => "text", name=> "user"} + ] ] ]]);
What am I doing wrong? tnx<html> <body><form><label for="user">Who are you?</label><input type="text" +name="user"></form></body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Newlines in HTML::LoL
by Radiola (Monk) on Feb 01, 2021 at 18:52 UTC | |
|
Re: Newlines in HTML::LoL
by Your Mother (Archbishop) on Feb 01, 2021 at 18:53 UTC | |
by LanX (Saint) on Feb 01, 2021 at 19:10 UTC | |
by Bod (Parson) on Feb 01, 2021 at 23:24 UTC | |
|
Re: Newlines in HTML::LoL
by LanX (Saint) on Feb 01, 2021 at 17:43 UTC | |
by BernieC (Pilgrim) on Feb 01, 2021 at 18:05 UTC | |
by LanX (Saint) on Feb 01, 2021 at 18:11 UTC | |
by BernieC (Pilgrim) on Feb 01, 2021 at 18:14 UTC | |
by LanX (Saint) on Feb 01, 2021 at 18:17 UTC | |
by BernieC (Pilgrim) on Feb 01, 2021 at 23:15 UTC | |
| |
| A reply falls below the community's threshold of quality. You may see it by logging in. |