in reply to Can I get compiled code in Perl like in Java(class file)
Well there's B::Bytecode but it is, as it says in the documentation, experimental. Maybe it'll work for you though.
/J\