Student or Learner
Please,could you tell me if these have the same meaning?
He was glad to have been talking to you the whole evening.
He was glad to be talking to you the whole evening.
More or less- we use to have + past participle when it is important to emphasise that something was in the past.