in reply to Re: How can I write and call subroutines in separate files?
in thread How can I write and call subroutines in separate files?

You are asking the question in the wrong place. Ask in the Seekers of Perl Wisdom section, not here. For your reference, the perl package should end with .pm extension, and then in your test.pl, add the directive use lib "./" before use test2;