perldoc -f chop
perldoc -f substr
Alternatively you could build the string better to begin with. For instance:
@stuff=qw(foo bar baz); $query = "select " . join (',', @stuff) . $rest_of_query;
(just an example, caveat lector)
In reply to Re: How to take the last character out of a string
by duff
in thread How to take the last character out of a string
by Deib
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |