Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: pre-texted <STDIN>

by ShainEdge (Novice)
on Apr 04, 2020 at 12:39 UTC ( #11115038=note: print w/replies, xml ) Need Help??


in reply to Re: pre-texted <STDIN>
in thread pre-texted <STDIN>

Not exactly. What I want to do, within the perl program, is take a $string, insert it into a STDIN-like function, have it user editable, and then save it back as a $string.

So, what we are looking at is: $string = "this is a list". Insert that string in a real-time user-editable buffer. Then, have that edited string returned... such as "this is an 'edited' list." now in the $string variable

Replies are listed 'Best First'.
Re^3: pre-texted <STDIN>
by bart (Canon) on Apr 05, 2020 at 11:08 UTC
    So you're talking about the console, not about STDIN.

    The module RL can, theoretically, do that; see insert_test and stuff_char.

    However, I've not yet succeeded in installing it using CPAN on Windows, as it's missing "readline.h", so I'd have to get a port of "readline" (GNU?) to Windows first. MinGW might have it, but that's about all I know.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2022-05-26 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (93 votes). Check out past polls.

    Notices?