in reply to parsing file

$ perl -ne 'm/(\w+\.bld)/ and print$1,$/ and last' your_file
get's exactly the first .bld file