B
Billy Patton
Here is a very small example of a larger amount of code.
use strict;
use warnings;
my $sub;
Pkg::a();
Pkg::b();
Pkg::c();
foreach $sub ( qw(a b c)) {
no strict "refs";
Pkg::${sub}(); <<<<< line 11
}
package Pkg;
use strict;
use warnings;
use Exporter;
sub a { print "a\n";}
sub b { print "b\n";}
sub c { print "c\n";}
In the real code a,b,c get called with data
I get the following after trying to execute:
Bad name after Pkg:: at x line 11.
use strict;
use warnings;
my $sub;
Pkg::a();
Pkg::b();
Pkg::c();
foreach $sub ( qw(a b c)) {
no strict "refs";
Pkg::${sub}(); <<<<< line 11
}
package Pkg;
use strict;
use warnings;
use Exporter;
sub a { print "a\n";}
sub b { print "b\n";}
sub c { print "c\n";}
In the real code a,b,c get called with data
I get the following after trying to execute:
Bad name after Pkg:: at x line 11.