in reply to Re^3: Config file default options?
in thread Config file default options?


Hi thanks. I could understand your suggestion completely. but can you suggest some code for my question "After that How can i assign the values of keys in different variables so that i can use these variables in different part of my program?".
Thanks and regards
sanjay

Replies are listed 'Best First'.
Re^5: Config file default options?
by davorg (Chancellor) on Sep 08, 2006 at 09:42 UTC
    How can i assign the values of keys in different variables so that i can use these variables in different part of my program?

    I'm not going to do that as I think it's a bad idea and that keeping the values in a single hash is easier to code, more flexible and more maintainable. You have all the data in a hash. What can you gain from copying it into separate variables?

    If you really want to do this, then you should look for information about "symbolic references". But I really don't think it's a good idea.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      Hi
      Thanks a lot for your suggestion. It helps me lot for solving my problem.
      Regards
      sanjay