my $string = 'abc'; while( $string =~ /b/g ) { print "@-\n"; }