Help for this page
my $stmt = 'INSERT INTO contact_form (' . join(',', keys %sql) . ') VA
+LUES (' . join(',', ('?') x keys %sql) . ') ON DUPLICATE KEY UPDATE '
+. join(' = ?, ', keys %sql) . ' = ?';
$VAR1 = 'INSERT INTO contact_form (more_info,city,name,address,comment
+s) VALUES (?,?,?,?,?) ON DUPLICATE KEY UPDATE more_info = ?, city = ?
+, name = ?, address = ?, comments = ?';
...for the right syntax to use near ' city = , name = , address = , co
ON DUPLICATE KEY UPDATE '
+. join(' = ?, ', keys %sql) . ' = ?'
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (258 votes),