Term::ReadLine::Tiny::readline - A non-OO package of Term::ReadLine::Tiny
version 1.09
use Term::ReadLine::Tiny::readline; while ( defined($_ = readline("Prompt: ")) ) { print "$_\n"; } print "\n"; $s = ""; while ( defined($_ = readkey(1)) ) { $s .= $_; } print "\n$s\n";
interactively gets an input line. Trailing newline is removed.
Returns undef on EOF.
undef
EOF
reads a key from input and echoes if echo argument is TRUE.
TRUE
Term::ReadLine::Tiny - Tiny implementation of ReadLine
GitHub https://github.com/orkunkaraduman/p5-Term-ReadLine-Tiny
CPAN https://metacpan.org/release/Term-ReadLine-Tiny
Orkun Karaduman <orkunkaraduman@gmail.com>
Copyright (C) 2017 Orkun Karaduman <orkunkaraduman@gmail.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
To install Term::ReadLine::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::ReadLine::Tiny
CPAN shell
perl -MCPAN -e shell install Term::ReadLine::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.