Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Breaking symmetry with a regex

by Anonymous Monk
on Apr 14, 2021 at 20:55 UTC ( #11131295=note: print w/replies, xml ) Need Help??


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.

Replies are listed 'Best First'.
Re^2: Breaking symmetry with a regex
by perlfan (Vicar) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11131295]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2021-05-07 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (90 votes). Check out past polls.

    Notices?