Luis Pachas <[EMAIL PROTECTED]> wrote:
: I keep getting a function undefined, I used require
: and exporter but I kept getting subroutine undefined.
: at times in the main:: and in the perl modules.
Exporter works fine. Perhaps you could show us what
you did?
: I went around this by having
On Jul 16, 2004, at 7:54 AM, Luis Pachas wrote:
Hi I have a problem,
I have a PM
i have this
A.pm :
package A;
my %b;
$b = {
apple => \&foo1,
oranges => \&foo2,
open => \&foo3
};
sub foo1 {
print "apples\n"
}
sub foo2 {
print "oranges\n"
}
sub foo3 {
my ($item) = @_;
print $item."\
Luis Pachas wrote:
Hi I have a problem,
I noticed several problems.
I have a PM
i have this
A.pm :
package A;
my %b;
$b = {
Must be global. And you need to decide if you want a hash or a hash
reference. I'm assuming a hash reference.
our $b = {
apple => \&foo1,
oranges => \&foo2,
ope