require "../MyLibrary.pm";instead of
use MyLibrary;The PerlLanguage module PerlUnit Unit::Test (http://search.cpan.org/dist/Test-Unit/) provides a version of the xUnit TestingFramework that can be used with ProceduralCode as well as with ObjectOriented code.