Hi,
> 
> I'd like to store an DBIx::Recordset typeglob inside a data object. All
> methods of the object shall have access to this RS.
> 
> I tried
> 
> $self->{RECORDSET} = DBIx::Recordset->Setup(...)
> 
> but it didn't work. When I use $self->{RECORDSET}, it doesn't behave
> like a typeglob any more. What's the right way to do this?
> 

typeglob's are real magic...

For your above case you simply have to dereference $self->{RECORDSET}, i.e.

$self->{RECORDSET}->{fieldname}           # hash access
$self->{RECORDSET}->[$row]{fieldname}    # array access
${$self->{RECORDSET}} -> Search (...) ;    # call a method

Hope this helps

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to