Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found