[EMAIL PROTECTED] wrote:
> 
> [snip]
>
> --------------------------------------------------------------------------------
> |      return %Actions::Vars::config{$conf};                 |
> 
>-----------------------------------------------------------------------------------------
> 
Must read:

        return $Actions::Vars::config{$conf};       # returns a hash reference
or
        return % { $Actions::Vars::config{$conf} || {} }; # returns plain hash

and should have been created like this:

my %user_conf = ( foo => 1, bar => 'on' );

$Actions::Vars::config{'user'} = { %user_conf };

One more tip: always say:

use strict;
use warnings;

That should have told you, whats wrong ;-))

See also

http://www.perldoc.com/perl5.6/pod/perldsc.html#Declaration-of-a-HASH-OF-HASHES

Ernest



-- 

*********************************************************************
* VIRTUALITAS Inc.               *                                  *
*                                *                                  *
* European Consultant Office     *      http://www.virtualitas.net  *
* Internationales Handelszentrum *   contact:Ernest Lergon          *
* Friedrichstraße 95             *    mailto:[EMAIL PROTECTED] *
* 10117 Berlin / Germany         *       ums:+49180528132130266     *
*********************************************************************

Reply via email to