http://www.perlmonks.org?node_id=287613


in reply to Tutorial suggestion: split and join

The inverse of split is the join function

No, it's not. If that would be true, I could use join to create the same string I split with split. But this is obviously not always possible. Think splitting on a regex that matches more than one string (for instance /\s+/), or the throwing away of trailing empty fields.

I missed the explaination of the meaning of a negative third argument.

Abigail

  • Comment on Re: Tutorial suggestion: split and join