in reply to Re^2: The maybe it is better written this way tool
in thread The maybe it is better written this way tool

> On the same note, split '...' is more readable as split /.../, since the first arg of split is a regex pattern. (split ' ' excepted, of course.) We often get questions about split '|'.

I don't understand, don't you mean it the other way round?

IMHO since /.../ clearly shows that it's a regex it should better always be written like that.

'...' misleadingly looks like a simple string.

Cheers Rolf

  • Comment on Re^3: The maybe it is better written this way tool

Replies are listed 'Best First'.
Re^4: The maybe it is better written this way tool
by ikegami (Patriarch) on Nov 18, 2009 at 00:01 UTC
    I said "more readable as", not "more readable than". You said the same thing I did.
      ok, got lost in translation...

      Cheers Rolf