Hi Igor,

thanks for helping Sean and shedding light on the problem he had with my code.

Regards,

        Shlomi Fish

On Wed, 8 Feb 2012 15:02:49 +0200
Igor Dovgiy <ivd.pri...@gmail.com> wrote:

> Hi Sean,
> 
> Let's follow the documentation, shall we? )
> 
> -- readline(PROMPT[,PREPUT])
> Gets an input line, with actual GNU Readline support. Trailing newline is
> removed. Returns undef on EOF.
> PREPUT is an optional argument meaning the initial value of input.
> The optional argument PREPUT is granted only if the value preput is
> in Features.
> 
> It's easy to check that Term::ReadLine::Stub (used as implementing module
> by default, it seems) doesn't support preput feature. Just check
> $rl->Features.
> But Term::ReadLine::Gnu does, as it's an interface to a very
> powerful {libreadline} term library.
> 
> So install Term::ReadLine::Gnu module (if needed, libreadline-dev as well)
> - and have fun with preput text without changing a line in Shlomi code. )
> 



> -- iD

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Funny Anti-Terrorism Story - http://shlom.in/enemy

The difference between a good student and a bad student is that a bad student
forgets the material five minutes before the test, while a good student five
minutes afterwards.
    — One of Shlomi Fish’s Technion Lecturer

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to