The contents of HelloServer.pm is simply
package HelloServer;
sub sayHelloTo {
my $pkg = shift;
my $name = shift;
return "Hello " . $name;
}
1;
The first argument is the package name. Java programmers beware: 'packages' in Perl are not the same as 'packages' in Java!