in reply to problem with shebang

the problem was with selinux.
When I turned off selinux.
the problem went away.

I haven't found out exactly what is causing the problem.
But it wasn't something with perl.
thanks for all the comments.