in reply to How to use Perl in HTML Template?

It's no surprise that it's not working, what you write is not valid perl after all:

$ perl -e '[ print "Hello!!";]' syntax error at -e line 1, near ""Hello!!";" Execution of -e aborted due to compilation errors.

Trying without the [...] might help.

And in general it is helpful to describe exactly what happens, not just "it was not running".

Perl 6 - links to (nearly) everything that is Perl 6.