Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: best way to store login information for a perl script?

by Your Mother (Bishop)
on Jul 04, 2009 at 06:11 UTC ( #777180=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use YAML ();
    my $config = YAML::LoadFile("$ENV{HOME}/.twitter.cnf");
    
    ...
    ---
    username: MooseQueen
    password: twitterLuser
    
  2. or download this
    use Net::Twitter;
    use YAML ();
    ...
                                 traits => [qw/API::REST/],
                                 %{$config},
                                );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://777180]
help
Chatterbox?
and dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2018-02-25 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (314 votes). Check out past polls.

    Notices?