in reply to Split on a new line

Your problem is in using a modifier that will match a zero-length string. Change split(/[\n\r\l]*/) to split(/[\n\r\l]+/). Also, why do you have the letter 'l' in there? ([\n\rl] is the same as [\n\r\l].)

Replies are listed 'Best First'.
Re^2: Split on a new line
by Luken8r (Novice) on Jul 03, 2007 at 15:37 UTC
    Replacing the * with + helped, however args[0] is the very last line and args1 is empty. Perhaps they arent new lines?