Help for this page

Select Code to Download


  1. or download this
    @values = (
               1, 
               2, 
               3
              );
    
  2. or download this
    my $str_values = join(', ', @values);
    # $str_values is now '1, 2, 3'
    ...
    $db->do("insert into $table values ($str_values)") ...
    ...