Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Properties files to read the tokes and passwords outside of the perl scripts.

by salva (Canon)
on Dec 14, 2020 at 07:30 UTC ( #11125153=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125153]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2022-01-24 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?