Am Montag, 9. Mai 2005 21.56 schrieb Graeme McLaren:
> Hi all, I want to return a hash when calling
> $conf->get_users_table_and_columns; 

Below you say that you don't want to return an ordinary hash...

> but when I do: 
> die Dumper($conf->get_users_table_and_columns);
>
> I get:
>
> Software error:
> $VAR1 = 'column3';
>
>
> What I really want to see is:
>
> $VAR1 = {
> column3 => 'bla1',
> key2 => 'bla2'
> }
>
>
> I don't want to simply return a reference to a hash because I am calling a
> method on a class and want to keep it object oriented.

Even if a method returns a hash, it's object oriented.
Do you mean you want to return an object based on a hash???


> Anyone know how I would do this?

Could you provide some code please?

joe

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to