It's hard to give a general case for just two examples. Anything anyone suggest may break on your third line. Given the two examples, I wouldn't split - I'd just match what I want. Perhaps something like (untested):
my @what_i_want = $what_i_have =~ /(\S.*?INTERFACENAME)/gs;