#include void hello() { printf("Hello world!\n"); } #### package Example; use 5.006; use strict; use base qw/Exporter DynaLoader/; our $VERSION = '0.01'; our @EXPORT_OK = qw/ hello /; bootstrap Test $VERSION; 1; #### #!/usr/bin/perl use strict; use Example; print Example::hello;