<perl [script_path]> tag in WHM themes

Bazer

Member
Feb 18, 2005
10
0
151
Hello.

I have a problem embedding perl scripts in themes using the perl tag like stated in WHM's documentation:
Perl scripts can also be included in theme pages. In the following example, ex.pl would contain perlapi.txt commands as well as Perl code.

<perl /usr/local/cpanel/base/frontend/default/ex.pl>
But the script doesn't run and the perl tag can be seen in html source ( beside that the theme loads flawlessly into WHM ).

The script is a simple two-liner chmodded to 755.
Code:
#!/usr/bin/perl
print('Hello! World');
Is something in the perl script missing?

Plus is there a way to run a perl script as the user logged into WHM using this tag?

Thanks in advance,
Lucas.