in reply to Re^2: splitting line without split
in thread splitting line without split

I know the feeling -- same thing here!

But just because of that, I like to show the power of Perl and split is such a wonderful function: simple yet powerful and everybody can understand how it works, even without knowing Perl (of course if you do not go too deep into details).

Even PHP now has deprecated their split function in favour of preg_split which is a Perl Compatible Regular Expression split! Take that PHP. Perhaps they can go one step further and deprecate the whole of PHP and replace it by Perl. :-)

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James