Hi,

would you say this acceptable or something that should be forbidden?


my $sth_cmds = $dbh->prepare_cached($sql);
my @params;
push(@params, undef) foreach(0..12);
$sth_cmds->execute();
$sth_cmds->bind_columns(eval join(', ', map('\$params[' . $_ . ']', 
0..$#params)));


I haven't used 'eval' before, and this seems inherently dangerous.

It's also convoluted code.  Is there a right way to do this (without so
much typing)?


-- 
"Didn't work" is an error.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to