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 ||):

if ( @row ) { my $counter = 0; $q->param( map { $_ => $row[$counter++] || '' } qw/mid name realname emai +l/ ); }
Don't know if it's more legible though.

--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
    Oooh - very pretty. Thanks!
    --
    man with no legs, inc.