in reply to Re^2: regex trouble
in thread regex trouble
At some point adding whitespace
leads
to
reduced
clarity
and
slower
comprehension
.
Two things would clean those particular lines up in my view - adding /x as you suggest, and using a character set for the single character delimiters:
my $pattern= "([,|:>] | \\]\\[ | _\\|_)"; my @splitted= split /$pattern/x, $text;
|
|---|