in reply to Perl Functions
Smells a lot like homework.
If so, you'll serve yourself better by reading a module-creation tutorial.