Mason sharing variables, rookie alert :)
am 13.07.2006 16:51:59 von Billy PattonI have 2 components. One builds a hash. the next needs to read it.
ex: "A" module
<%share>
my %hash = ( 'dogs' => 'ok' ,'cats'=>'maybe');
%share>
"B" module
<%perl>
my $dogs = $hash{'dogs'};
my $cats = $hash{'cats'};
print "dogs are $dogs and cats are $cats\n";
%perl>