How to install perl inside rhel6 image?

I am trying to dockerize hadoop installtion on rhel6 which requires perl.
But rhel6 does not contain perl inside it.
How do i install it?

I tried two ways:

  1. Copied /usr/bin/perl from my mac to /usr/bin/perl inside my container using ADD. [/bin/sh: /usr/bin/perl: cannot execute binary file]
  2. downloaded perl tar file and updated the env path. yet it throws me this error -[ /bin/sh: perl: command not found]

Can experts suggest me something?

can you yum install perl ?

I was not able to yum install perl. These packages cannot be found on rhel6 because a container cannot be registered to RHEL6.

I downloaded rpm packages for centos and used yum to install it in my container.