| 1 | package Mojo::Console::Input; | ||
| 2 | 2 | ▶ | use Mojo::Base -base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 0 | ▶ | sub ask { |
|
Subroutine
ask: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 5 | 0 | my $self = shift; | |
| 6 | |||
| 7 | 0 | my $answer = <STDIN>; | |
| 8 | 0 | chomp $answer; | |
| 9 | |||
| 10 | 0 | return $answer; | |
| 11 | } | ||
| 12 | |||
| 13 | 2 | 1; | |
| 14 | |||
| 15 | =encoding utf8 | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Mojo::Console::Input - read things from STDIN | ||
| 20 | |||
| 21 | =head1 METHODS | ||
| 22 | |||
| 23 | L<Mojo::Console::Input> inherits all methods from L<Mojo::Base> and implements | ||
| 24 | the following new ones. | ||
| 25 | |||
| 26 | =head2 ask | ||
| 27 | |||
| 28 | my $answer = $self->ask; | ||
| 29 | |||
| 30 | =cut | ||