Hey guys

I am trying to pass a hash over from the backend to the frontend:

Backend:
        my %test = ("1" => "test1", "2" => "test2");
        $args{'othercolours'} = \%test;


Frontend:
        $othercolours = $out_list['othercolours'];
        print $othercolours;
        foreach ($othercolours as $currentColour => $value) {
                print "Backend reported: <b>$currentColour</b> and              
         
<b>$value</b><br>\n";
        }

This gives me at the webinterface:

Query backend plugin for function try
HASH(0x87a2688)
Warning: Invalid argument supplied for foreach() in 
/var/www/nfsen/plugins/Plugin.php on line 69

It works with arrays, but does somehow not seem to work with hashes? Or 
what am i missing? As can be seen, the reference makes it to the frontend...

  -best regards, bjoern

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to