Help for this page

Select Code to Download


  1. or download this
        # ...
        my @fields = (qw(id name salary));
        my $fieldlist = join ", ", @fields;
        my $field_placeholders = join ", ", map {'?'} @fields;
    
  2. or download this
        my field_placeholders = join ', ', ('?') x @fields;