C r wrote:
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.

Don't know, but in any case the m// operator is a better way to do that:

    my @parts = $string =~ /.{8}/g;

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to