Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Odd (literally) problems with HTML::Template and params

by bwana147 (Pilgrim)
on Jul 10, 2001 at 06:59 UTC ( [id://95249]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://95249]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.