I don't think that is possible. In any case because the pg code is mostly run in a Safe compartment (to prevent execution of damaging perl code) it is not that straight forward to add a CPAN perl module for use in rendering a problem.
You can ask the professor to get in touch with me. (email@example.com) I'm teaching a linear optimization course this semester (simplex method) and using a fair amount of linear algebra so at the moment I'm in a position to listen to feature requests although I may or may not be able to implement them quickly. I may have some ideas for accomplishing what they have in mind with the tools that are already available.
Just allowing the CPAN modules to execute safely is something of a challenge but in addition we will want to make them play nicely with MathObjects -- and that can take some time and some thought about what is REALLY desired. We're still working on smoothing out the interface between MathObjects and the CPAN RealMatrix module.