Authen::PAAS::ConsoleCallback - blah


Authen-PAAS documentation  | view source Contained in the Authen-PAAS distribution.

Index


NAME

Top

Authen::PAAS::ConsoleCallback - blah

SYNOPSIS

Top

  use Authen::PAAS::ConsoleCallback;

  my $callback = Authen::PAAS::ConsoleCallback->new("Enter username: ");
  my $username = $callback->data;

DESCRIPTION

Top

This provides a callback which prompts for data on STDOUT, and reads a response from STDIN.

METHODS

Top

my $callback = Authen::PAAS::ConsoleCallback->new($label);

Create a new console callback, using the $label parameter as the prompt to display on STDOUT.

my $data = $callback->data;

Displays a prompt on STDOUT (flushing buffers, in case the prompt did not contain a newline). A response is then read from STDIN, with any leading or trailing whitespace is trimmed, before the data is returned

AUTHORS

Top

Daniel Berrange <dan@berrange.com>

COPYRIGHT

Top

SEE ALSO

Top

Authen::PAAS::Callback


Authen-PAAS documentation  | view source Contained in the Authen-PAAS distribution.