code_junkie

Useful Perl modules

Nov 11th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. my $rs = $db->query( 'SELECT foo FROM bar' );
  2. while ( my $row = $rs->hash ) { ... }
  3.  
  4. sql_interp( 'INSERT INTO foo', { bar => 1, baz => 2 } );
  5. # 'INSERT INTO foo ('bar', 'baz') VALUES(?, ?)', 1, 2
Add Comment
Please, Sign In to add comment