in reply to [perlre] grouping parenthesis capture whole string instead of proper subset... why?

You could make use of chomp and Perl's "Input Record Separator":

my $setstr = 'altcategory=||'; warn $setstr; { $/='||'; chomp $setstr } warn $setstr;

Cheers,

-- Dave :-)

  • Comment on Re: [perlre] grouping parenthesis capture whole string instead of proper subset... why?
  • Download Code