Question: I'm having `UIImage` with arrow mark,on that I had place custom button.
When i clicked this button I want to Show te date picker.
After selecting the date from date-picker,I need to show selected date as button text.
I'm using the button by XIB.

Answer: 
This may works:

```
my $sql_str = join ',' => map { $_ = qq|'$_'|; } @tab;

```

But, manually building your SQL this way is a **bad idea™**. [Parameter binding](https://stackoverflow.com/q/2207654/100754) is the proper way to solve this problem.
To do this with placeholders (i.e., properly), you need to first gather all the values for the `IN` clause into a single array (`@values`) so that you know how many of them there are, then:

```
my $in_clause = join(', ', ('?') x scalar @values);
my $sql_str = "select field1, field2 from my_table where id in ( $in_clause )";
my $sth = $dbh->prepare($sql_str);
$sth->execute(@values);

```

(`scalar` isn't strictly necessary here, but included to make it a little more obvious what's going on for the OP.)