in reply to Can't use string as HASH ref

That probably means $info contains string here when the callback happens. Since you haven't shown us any code that declares or sets $info, not much more can be said.

Abigail

Replies are listed 'Best First'.
Re: Re: Can't use string as HASH ref
by dimmesdale (Friar) on Jul 23, 2002 at 15:59 UTC
    I say  my $info

    I want to leave it to the Optionmenu to 'declare' which directory $info->{subdir}->[$indx] shoud be. Is there anyway to do that? I tried to see what Ev(...) would do, but I still got the original error.

      Where do you have the my $info? And where do you set $info. I suggest carefully inspecting your code and see where $info gets modified. It's very likely that that's were it's going wrong.

      Abigail

        My mistake.

        my $info is in the generate_options subroutine (I accidently deleted that part because the line defined other variables that cluttered the code up).

        Sadly, $infois only modified in the optionmenus select behaiviour (well, not entirely true; however, $info->{subdir} and $info->{file} are only modified as seen in the code above.

        I think I may just have to try a different approach ... too many headaches, too few time :(