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.