Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: pre-texted <STDIN>

by ShainEdge (Novice)
on Apr 04, 2020 at 12:39 UTC ( [id://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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-21 23:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found