Magpies seal Perch deal