You could make use of chomp and Perl's "Input Record Separator":
my $setstr = 'altcategory=||'; warn $setstr; { $/='||'; chomp $setstr } warn $setstr;
Cheers,
-- Dave :-)
In reply to Re: [perlre] grouping parenthesis capture whole string instead of proper subset... why?
by DaveH
in thread [perlre] grouping parenthesis capture whole string instead of proper subset... why?
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |