Hi Graeme
(I repost this email too to the list, this way somebody can correct me)
> Re: returning a hash from a method call ?
> Datum: Heute 21.08:32
> Von: "Graeme McLaren" <[EMAIL PROTECTED]>
> An: [EMAIL PROTECTED]
>
> Hey Joe, thank you for your reply,
like
$self->{conf}={table=>'blog',...};
> return %conf;
...and the method (hopefully not the only one in the class) would get shorter:
sub get_users_table_and_columns{
return $_[0]->{conf};
}
It returns a hashref instead of a hash.
joe
> }
> ########
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 er
Hi all, I want to return a hash when calling
$conf->get_users_table_and_columns; 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 re