Install Perl on Linux
1. Install mod perl
sudo apt-get install libapache2-mod-perl2
2. Add to bottom of Apache config
AddHandler cgi-script .cgi .pl
3. Reload Apache and test
#!/usr/bin/perl print "Content-type: text/plain\n\n"; print "Hello";
Save as hello.pl or .cgi then upload (chmod 775) and view