in reply to Compilation error
The first step would be to actually read the error messages which say quite explicitly what's wrong. If those aren't clear enough, then pipe the errors through splain or use diagnostics.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In Section
Seekers of Perl Wisdom