husker has asked for the wisdom of the Perl Monks concerning the following question:
I'm getting a syntax error around the foreach statment. I am not sure if I need to enclose the foreach in (), in {}, make it a subroutine call instead, or perhaps I'm not on the right track at all.print table ({width => 200}, (map { $my @t = @$_; Tr ({bgcolor => "#dddddd"}, foreach $fil (@t) { td ("$fil") }) } @fil_tbl ));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Creating an HTML table with 'n' rows
by merlyn (Sage) on May 17, 2000 at 19:42 UTC | |
by elwarren (Priest) on May 17, 2000 at 21:05 UTC | |
|
Re: Creating an HTML table with 'n' rows
by athomason (Curate) on May 17, 2000 at 19:53 UTC | |
|
Re: Creating an HTML table with 'n' rows
by mikfire (Deacon) on May 17, 2000 at 18:32 UTC | |
|
Re: Creating an HTML table with 'n' rows
by turnstep (Parson) on May 17, 2000 at 19:45 UTC | |
by husker (Chaplain) on May 17, 2000 at 20:03 UTC |