in reply to Properties files to read the tokes and passwords outside of the perl scripts.

The CPAN module Config::Properties allows one to read Java property files. Its documentation contains example code.
  • Comment on Re: Properties files to read the tokes and passwords outside of the perl scripts.

Replies are listed 'Best First'.
Re^2: Properties files to read the tokes and passwords outside of the perl scripts.
by chandantul (Scribe) on Dec 22, 2020 at 16:39 UTC

    Its works great. Thanks for your help

    open my $fh, '<', "C:/" . "conf.prop" or die "unable to open configura +tion file"; my $properties = Config::Properties->new(); $properties->load($fh); my $value = $properties->getProperty('my.token');

    This might help somebody. Simple question with simple answers.Thanks