I am facing one issue with my perl code. I have created one package 'Welcome.pm' and using that in a script 'hello.pl'. But getting below error 'Undefined subroutine &main::First called at hello.pl line 6' I looked at other answers as well but still couldn't figure out what is wrong with code.
Can anyone please help?
perl module Welcome.pm
package Welcome;
use strict;
use warnings;
use base 'Exporter';
my @ISA = qw(Exporter);
my @EXPORT = qw(First);
sub First{
print "welcome\n\n";
}
1;
perl script hello.pl
#!usr/bin/perl
use UsersModules::Welcome qw(First);
use strict;
use warnings;
First();