in reply to Re: 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 '|'.

Replies are listed 'Best First'.
Re^3: The maybe it is better written this way tool
by LanX (Saint) on Nov 17, 2009 at 23:37 UTC
    > 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

      I said "more readable as", not "more readable than". You said the same thing I did.
        ok, got lost in translation...

        Cheers Rolf