Code:
package ExampleModule;
use strict;
use base "Exporter";
our @EXPORT = qw(hello_world);
sub hello_world {
print "Hello,world";
}
1;
#!/usr/bin/perl -w
use strict;
use lib '/home/Admin/Desktop/Perl_Work_Space/ExampleModule.pm/';
use ExampleModule qw(hello_world);
hell_world('ram');
exit;
Undefined subroutine &main::hell_wor ld called at module.pl line 5.
Comment