Watcom C/C++
  Contact Us

The simplest way is to put the functions in a file, and require the file:

    use strict;
    use warnings;
    sub foo {
      print "This is the foo() function\n";

And you can call foo() in the same way that does:

    #!/usr/bin/perl -w
    # simple program to call foo() defined in
    use strict;
    require "";

This has some limitations: