Yea, the version hardcoded like that wouldnt be too good for the future and other versions obviously...how about this to retrieve someone's current version? Don't know if I may be doing it a more complicated way...but you get the point.
Code:
PERL_VERSION=`perl -v | awk '/perl,/ { print $4 }' | awk --field-separator=v '{ print $2 }'`
mkdir -p $USER_HOME/usr/lib/perl5/$PERL_VERSION/i386-linux-thread-multi/CORE