use strict; use warnings; my $text = join "", ; while($text =~ /(.*?)/sg) { print $1; } __DATA__ revision1 revision2 revision3