Soldering two PCBs or Perfboards together?

wxhemiao:
when I tried to insert the already populated LCD PCB into the perf, it seems like the male header is too long on the other side.

That's where these are for: