, originally by Larry Wall, allows you to write Java classes in Perl. However, this is almost certainly a terrible idea and you should re-think what you're doing here. Mixing multiple languages always involves translation of variable types and other glue code which tends to make this kind of solution both slow and prone to bugs. The only language that truly plays well with perl for embedding is C.
Maybe if you explain the problem you're trying to solve, someone here could suggest a better way to do it.