in reply to Re: Reading a Properties file
in thread Reading a Properties file

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

Replies are listed 'Best First'.
Re^3: Reading a Properties file
by davorg (Chancellor) on Aug 16, 2006 at 15:46 UTC

    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

Re^3: Reading a Properties file
by holli (Abbot) on Aug 16, 2006 at 15:51 UTC
    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.