in reply to
Breaking symmetry with a regex
split
is also very handy in such cases, where the string contains values that are separated by a particular character or characters.
Comment on
Re: Breaking symmetry with a regex
Replies are listed 'Best First'.
Re^2: Breaking symmetry with a regex
by
perlfan
(Parson)
on Apr 15, 2021 at 00:12 UTC
>
split is also very handy
And to hammer home this point, many mistake the first parameter of
split
to be a simple string, when in fact it is a regex! Be sure to read what
PATTERN
will do for you.
Incidentally,
split
can also be used as a way to
trim
.
[reply]
[d/l]
[select]
In Section
Seekers of Perl Wisdom