Answer the question
In order to leave comments, you need to log in
How to get a password from a file?
I use cmus player and libre.fm service. For scrobbling, I use the post-fm script . I also store my configs, including this script, in a public repository, so I would like to put my password in a separate file. I have tried the following construct:
open my $pass_file, 'password.lst';
my $pass = <$pass_file>;
close $pass_file;
# Globals. {{{
our %rc = (
...
password => $pass,
...
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question