in reply to Problem with pattern match

If you're ever likely to want to pull out different ones from the list, you might like to take advantage of the fact that, in array context, a pattern match returns a list of everything that was captured. So
my $s = 'sbs/c/b/cow.bld:three.bld'; my @a = $s =~ /(\w+\.bld)/g; print $a[$#a];
... will print out the one you want, but also leave you with an array with all the others in it as well.

§ George Sherston