Problems? Is your data what you think it is? | |
PerlMonks |
Re: pre-texted <STDIN> with Term::ReadLine -- onelinerby Discipulus (Canon) |
on Apr 04, 2020 at 11:48 UTC ( [id://11115036]=note: print w/replies, xml ) | Need Help?? |
hello ShainEdge and welcome to the monastery and to the wonderful world of Perl! you can play with Term::ReadLine to accomplish your task. The following oneliner is a windows version and you have to force the underlaying readline module setting PERL_RL ENV var and also TERM one to be empty (not DUMB as cmd.exe IS DUMB ;)
To adapt to Linux use single quotes around the oneliiner and double quotes inside it; you can probably remove the BEGIN block too. L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|