Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: pre-texted <STDIN> with Term::ReadLine -- oneliner

by ShainEdge (Novice)
on Apr 04, 2020 at 13:03 UTC ( [id://11115039]=note: print w/replies, xml ) Need Help??


in reply to Re: pre-texted <STDIN> with Term::ReadLine -- oneliner
in thread pre-texted <STDIN>

Thank you for the greeting. This looks, so-far as I have read your script, what I was shooting for.

I went to read the "Term::Readline" documentation, and I would not have guessed it was able to do as you have presented, reading that document. That is what I had mentioned in an earlier statment. If I were to just search for this, I could take days of looking at hints that it could do what I wanted, based on the name, but come away, after reading it, not knowing it was the proper package/function.

  • Comment on Re^2: pre-texted <STDIN> with Term::ReadLine -- oneliner

Replies are listed 'Best First'.
Re^3: pre-texted <STDIN> with Term::ReadLine or IO::Prompt
by Discipulus (Canon) on Apr 04, 2020 at 13:25 UTC
    > If I were to just search for this, I could take days of looking at hints that it could do what I wanted

    indeed! there is CPAN search but.. for all the remaining part there is perlmonks! ;)

    Nothing like the experience from other users (not speaking about me), infact the perl community is one its best plus.

    You can also find IO::Prompt an interesting solution (dunno atm if it can prefill input but you can adapt my example to it)

    L*

    PS changed the title for personal indexing matters

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11115039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found