If your webserver knows what to do whith it, it must be ok.
For me the only reason to use suffixes as .pl .pm etc. is for humans beeing able to distinguish the probable file use from its name. But I actually prefer other ways e.g. directories. Working in unix systems you anyway can't rely on the suffix only.
There is a caveat with require; see
require.