> Can the perl split function split a random 40 character > string into five 8 character strings? > > With random I mean that there is no special pattern in the 40 > character string that can be used as split markers.
How about unpack? @eights = unpack("A8" x (length($string)/8), $string); Thanks Jim --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 8/27/2004 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>