in reply to require problems

Did you read the error message?

stylesheet.pl did not return a true value at addfather.pl line 4.

The problem is not in the require, it's in stylesheet.pl. Just add a 1 or return 1 in stylesheet.pl, at the end of any code that is executed at compile time. That would typically be before you start defining subroutines.