Languages differ greatly in the amount of functionality contained in the main namespace. Most of the PHP main functions, have counterparts in Perl core libraries. What should the policy be on character counts in such cases?
For example, my solution for the NxN spiral used the Perl library Math::Complex
. Possible outcomes:
- Allow command-line calls such as
perl -MMath::Complex script.pl
to include libraries. - Require
use Math::Complex;
in the code. - Do not allow libraries.
Of course, this is just another instance of the problem of trying to compare languages, but there is some value in defining an objective measure.