Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Tutorial suggestion: split and join

by Abigail-II (Bishop)
on Aug 29, 2003 at 08:52 UTC ( #287613=note: print w/replies, xml ) Need Help??


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