Sorry, but sending a message like that doesn't really help a beginner ( = a
person for whom that list was created! ).
Fortunately, my problem has already been solved by others ( THANKS AGAIN! )

> -----Ursprüngliche Nachricht-----
> Von: gmsayloriii [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 12. Juni 2001 14:00
> An: Ela Jarecka
> Betreff: Re: Getting to the contents of a class..
>  
> %
>
> ----- Original Message -----
> From: "Ela Jarecka" <[EMAIL PROTECTED]>
> To: "Beginners list (E-Mail)" <[EMAIL PROTECTED]>
> Sent: Monday, June 11, 2001 5:00 AM
> Subject: Getting to the contents of a class..
> 
> 
> > 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
> 

Reply via email to