in reply to Seeking help from Perl Monks for counting regular expressions (motifs) and counting lengths between them in a large string
until (my $motif =~ /^\s*$/ );# Line 58 [download]
until ($motif =~ /^\s*$/ );# Line 58 [download]
Other advice: