$word = 'computer';
my @results;
while ($word) {
$word =~ /(...)/;
push @results, $1;
$word =~ s/^.//;
}
print "@results";
In reply to Re: finding number of contiguous letters
by Anonymous Monk
in thread finding number of contiguous letters
by Marknel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |