lestrat's answer is correct, but you can also do: $setstr =~ s/\|\|$//;if your sole intent is to remove two vertical bar characters at the end.
In reply to Re: [perlre] grouping parenthesis capture whole string instead of proper subset... why?
by VSarkiss
in thread [perlre] grouping parenthesis capture whole string instead of proper subset... why?
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |