in reply to Re: Undefined Subroutine errors
in thread Undefined Subroutine errors

Yes.
use strict use warnings;
Are alway at the top of any program with more about ten lines.