$query =~ s/,$//;
Better, though, to not put it there:
join is your friend :-)my @cols = qw(foo bar baz); $query1 = 'select ' . join (',',@cols);
In reply to Re: How to take the last character out of a string
by Tanktalus
in thread How to take the last character out of a string
by Deib
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |