This could be a job for split!
use strict; use warnings; my $string = 'abcdef123456' x 20; my @array = split(/(.){70}/, $string); @array = grep { defined } @array;
Note: Code is not tested
emc
Insisting on perfect safety is for people who don't have the balls to live in the real world.
In reply to Re: spliting text!!
by swampyankee
in thread spliting text!!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |