When I install with perlbrew in linux, It always automatically installs cpanm
I indeed used perlbrew to install and switch to perl 5.22.2 but it seems somehow, the "switch" was only partial.
How did you switch to perlbrew version? There are two different commands that have different effects. Using perlbrew use ... only affects the current shell. In another shell or later session, you are back to using the previous version. perlbrew switch ... will permanently use the specified version.
What is the output of perlbrew list? That will list all of the installed version and flag the current one.