Jue,
Thank you for the info, have looked thru the perdoc, but guess I missed
it. Thanks again for the help and quick response.
CJ
"Jürgen Exner" <> wrote in message
news:JGWDb.20768$...
> CJ wrote:
> > My question is what is the best way to de-reference the
> > internal hash or array. [...].
> >
> > %server_info = (default_server=>\$default,
> > server_list=> \@servers);
> >
> > The sub that creates this hash returns a reference to that hash...
> >
> > return \%server_info;
> >
> > When I try to use it in the calling program, I have tried to use the
> > following line only to get syntax errors...
> >
> > $server_list = sub_called_earlier();
> > foreach $element (@($server_list->{server_list})) {
>
> Right idea, wrong style of brackets. Try curlies instead:
> foreach $element (@{$server_list->{server_list}}) {
>
> [...]
> > I have spent time looking for an answer, but
> > have come up short. If anyone has a reference (no pun intended) to
> > point me to or a concept on how they make it work, would love to hear
> > it.
>
> Please see "perldoc perlref"
>
> jue
>
>
|