Pompey survived a scare to see off Hereford in the first round of the Emirates FA Cup.
They fell behind to Miles Storey's strike, but recovered to register a 3-1 victory against National League opponents at Edgar Street.
Danny Cowley's side hit an immediate leveller through Reeco Hackett before dominating the second half.