Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Re: Can't use string as HASH ref

by dimmesdale (Friar)
on Jul 23, 2002 at 15:59 UTC ( [id://184462] : note . print w/replies, xml ) Need Help??

in reply to Re: Can't use string as HASH ref
in thread Can't use string as HASH ref

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.

Replies are listed 'Best First'.
Re: Can't use string as HASH ref
by Abigail-II (Bishop) on Jul 23, 2002 at 16:04 UTC
    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.


      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 :(

        As far as I can see, $info is not modified at all in the above code.