Making a simple module is not difficult and does not require you to learn O-O programming or anything other than a basic formula. For a module with just the function 'foo' create Foo.pm with the following:
package Foo;
require Exporter;
@ISA =qw(Exporter);
@EXPORT =qw(foo); # List funcs to export here
sub foo($){
print @_;
}