Authen-Prepare

 view release on metacpan or  search on metacpan

examples/authen_prompt_none.pl  view on Meta::CPAN

#!perl
use strict;
use warnings;
use Authen::Prepare 0.04;
use Smart::Comments;

# Prompt for nothing: read 'mypassfile' for the password
my %auth = Authen::Prepare->new(
    {
        hostname => 'myhost',
        username => 'myuser',
        passfile => 'mypassfile',
    }
)->credentials();

### %auth



( run in 0.777 second using v1.01-cache-2.11-cpan-39bf76dae61 )