geektron: the variables declared in the child process are only used in sub Initialize and in sub do_child_stuff, so I would think that the scope is valid...
Nope. Other people have explained why so I wont comment. But I was wondering why you dont pass them as parameters to the functions? Then scoping doesnt become a problem:
my ( $foo, %bar, $bax );
Initialize_child($foo,\%bar,$bax);
do_child_stuff($foo,\%bar,$bax);
or with named parameters:
sub Init_Child {
my %params=@_;
#blah
}
Init_Child(name=>$foo,attribs=>\%bar);
Yves
--
You are not ready to use symrefs unless you already know why
they are bad. --tadmc (CLPM)