Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Discipulus (Canon)
on Apr 04, 2020 at 11:48 UTC ( [id://11115036]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MTerm::ReadLine -E "BEGIN{$ENV{PERL_RL}='Perl';$ENV{TERM}=''}  $
    +term = Term::ReadLine->new(); $txt='spaghetti,pomodoro,vino'; $txt=$t
    +erm->readline('edit:',$txt); say 'new:',$txt"
    
    edit:spaghetti,pomodoro,vino  # you now edit the line erasing 'pomodor
    +o' and hit RETURN
    
    new:spaghetti, vino
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-18 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found