help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell readline must apply and affect in Perl <STDIN>


From: Andreas Kusalananda Kähäri
Subject: Re: Shell readline must apply and affect in Perl <STDIN>
Date: Tue, 16 Nov 2021 13:40:24 +0100

On Tue, Nov 16, 2021 at 07:20:26PM +0700, Budi wrote:
> How, on Linux, do we have shell readline apply and affect in Perl
> <STDIN> when it prompts, so it'd be exactly as shell prompt
> capabilities ?
> 
> Did try ask on Perl's side and have had Term::ReadLine but not avail
> whatsoever, o please help.


You could try the rlwrap tool (available via your package manager):

        rlwrap ./my-perl-script

It gives you readline editing as in the shell, and (persistent) command
line history, etc.

-- 
Andreas (Kusalananda) Kähäri
SciLifeLab, NBIS, ICM
Uppsala University, Sweden

.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]