in reply to Re^2: String Match
in thread String Match

better is to use negative look around assertion: m/API#(?!#)/, it match also end of line.