Rifle case foam repair help

note that some foam will melt with hot glue, so test if you go that route.
if you want something permanent (not suggesting) you could use contact cement.
i would use double stick tape or something for something less permanent.