in reply to Odd (literally) problems with HTML::Template and params
For the 3rd question, you want to assign to different hash elements the values of a list? You can use a counter (and take care of missing values with an ||):
Don't know if it's more legible though.if ( @row ) { my $counter = 0; $q->param( map { $_ => $row[$counter++] || '' } qw/mid name realname emai +l/ ); }
--bwana147
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Odd (literally) problems with HTML::Template and params
by legLess (Hermit) on Jul 10, 2001 at 22:15 UTC |