in reply to Reading a Properties file

I searched CPAN for "properties" and found Config::Properties. Is that useful? You might need to be a little clearer about what you mean by a "properties file".

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

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

Replies are listed 'Best First'.
Re^2: Reading a Properties file
by mantra2006 (Hermit) on Aug 16, 2006 at 15:42 UTC
    Hello

    properties file i mean to say basically a text file with
    that format...so that the script will be independent
    and if i change the target directory i can do
    it in text file and my script won't be touched it should work with that change
    and if i want to add say *.xls
    i can add it in text file and no need of changing the script
    hope am clear


    Thanks & Regards
    Sridhar

      In that case, your best approach is probably to pick one of the existing config file parsing modules and adjust your config file to match that syntax.

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

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

      Boy, do you ever read your own posts? If so, I wonder why you don't realize that </br> tags do absolutely nothing. Make that <br />, please.


      holli, /regexed monk/
        A reply falls below the community's threshold of quality. You may see it by logging in.