bigup401 has asked for the wisdom of the Perl Monks concerning the following question:
am trying to loop and get all arrays. every name with its li
<li> #Foo with all div and span inside here </li> <li> #bar with all div and span inside here </li> <li> #moo with all div and span inside here </li> use CGI::Pretty ":standard"; @names = ('Foo', 'Bar', 'Moo'); my $str = join(" ",@names); $data = li ( div({"class='inforno'"}, "<img src='inforno>'"), div({"class='inforno'"}, "<a href='#' class='inforno'>$ +str< +/a>"), span({"class='inforno'"}, "<a href='#' class='inforno' +> Edit user </a>") ); print "$data\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: output all array names in html
by marto (Cardinal) on Sep 14, 2018 at 12:27 UTC | |
by 1nickt (Canon) on Sep 14, 2018 at 14:21 UTC | |
by marto (Cardinal) on Sep 14, 2018 at 14:24 UTC | |
by holli (Abbot) on Sep 14, 2018 at 21:29 UTC | |
by bigup401 (Pilgrim) on Sep 14, 2018 at 12:32 UTC | |
by marto (Cardinal) on Sep 14, 2018 at 12:40 UTC | |
by bigup401 (Pilgrim) on Sep 14, 2018 at 13:14 UTC | |
by will_ (Scribe) on Sep 14, 2018 at 14:23 UTC | |
|