in reply to spliting text!!

my $text = s{(\S{70})}{\1 }g;

This will add a space every 70 characters.

Update: Sorry I misread your question, did you what to split your string into an array or did you just want to space out a very long string?

Replies are listed 'Best First'.
Re^2: spliting text!!
by Trizor (Pilgrim) on Mar 08, 2007 at 21:16 UTC

    Using \1 in s/// is depreciated as it can be ambiguously interpreted as a charachter since the second half of the substitution is treated as a quoted string; just use $1.