Hi,
I've just defined a small class, DataReq. It contains a hash called 'myflds'
and a couple of functions for writing/retrieving data.
Now, in my main program, I've included the following code:
my $reqrec = new DataReq;
if ( ($reqrec->fillrec(@mylist)) == undef ) {
die "fillrec failed!\n";
}
foreach my $item ( keys $reqrec->myflds ) { #line 26
...
}
I get an error:
'Can't locate object method "myflds" via package "DataReq" at makeReq line
26'
How should I indicate that 'myflds' is a hash? I've tried putting an '%' in
front of 'myflds' but it returned
an error as well.
Could anyone help?
Thanx in advance,
Ela