If the perl file's directory location is in the @INC path information, you can just use:
require "function.pl";
If it isn't, use:
require "x:/path/to/file/function.pl"; # x is the drive letter if this is on an NT machine.
If you don't know what paths are set in the @INC, run this little program from the command line:
#! /usr/bin/perl
print "@INC";