in reply to matching in a line

Your suggestion, and others, destroy the initial value. This might not matter, but if you want to keep your initial value use:
($firstword) = $word =~ /^(.*?):/;
This leaves $word eq 'Here:\: => M:\p_sold-cr_q00457655_EFLT' and sets $firstword eq 'Here';