in reply to Solving polynomials in Perl

You should search CPAN for any modules that meet your needs.
In this case, check out Math::Polynomial::Solve.
It can find the roots of polynomial up to the quartic.