This won't respect the default prefix of the keymap (which might not be `C-c p`). I'd suggest using:

```
(define-key projectile-mode-map [remap projectile-switch-project] 'projectile-persp-switch-project)
```