Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Splitting a string

by nobull (Friar)
on Feb 08, 2006 at 18:32 UTC ( #528892=note: print w/replies, xml ) Need Help??

in reply to Re: Splitting a string
in thread Splitting a string


Isn't that rather more complicated than necessary?


Replies are listed 'Best First'.
Re^3: Splitting a string
by japhy (Canon) on Feb 08, 2006 at 19:19 UTC
      It is true that /PATTERN/g will DWIM when /PATTERN/ matches the empty string and not find an infinite number of matches as the same point.

      I, however, consider code that relies on this behaviour in order save one character to be less simple.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2023-06-06 10:31 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (26 votes). Check out past polls.