You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Garth Winter Webb <ga...@perijove.com> on 2002/03/14 19:46:43 UTC

Re: problems returning a hash of hashes using mod_perl

On Thu, 2002-03-14 at 10:46, FRacca@apsys.com.ar wrote:

> code:
> --------------------------------------------------------------------------------
> |      return %Actions::Vars::config{$conf};                 |
> -----------------------------------------------------------------------------------------

You are not access the hash with the proper syntax:

    %Actions::Vars::config

refers to the entire config hash, while:

    $Actions::Vars::config{$conf}

will return you a value from that hash.  Notice the leading '%' has been
replaced with a '$'.  Read the 'perldsc' man page:

    man perldsc

G