NAME
Ask::Fallback - backend for unattended scripts
SYNOPSIS
my $ask = Ask::Fallback->new;
$ask->info(text => "I'm Charles Xavier");
if ($ask->question(
text => "Would you like some breakfast?",
default => !!1,
)) {
...
}
DESCRIPTION
This backend prints all output to STDERR; returns defaults for question
, file_selection
, etc, and croaks if no defaults are available.
This backend is used if the PERL_MM_USE_DEFAULT
or AUTOMATED_TESTING
environemnt variables are set to true, or as a last resort if no other Ask backend can be used.
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Ask.
SEE ALSO
Ask.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2012-2013, 2020 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.