in reply to Question regarding split

Because:

Splits the string EXPR into a list of strings and returns that list. By default, empty leading fields are preserved, and empty trailing ones are deleted.

The first paragraph of split.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Question regarding split
by Anonymous Monk on Jan 20, 2014 at 10:12 UTC
    And the fourth paragraph elaborates:
        If LIMIT is specified and positive, it represents the maximum
        number of fields the EXPR will be split into, though the actual
        number of fields returned depends on the number of times
        PATTERN matches within EXPR.  If LIMIT is unspecified or zero,
        trailing null fields are stripped (which potential users of
        "pop" would do well to remember).  If LIMIT is negative, it is
        treated as if an arbitrarily large LIMIT had been specified.