develooper Front page | perl.beginners | Postings from August 2009

Re: better readline?

Thread Previous | Thread Next
Chas. Owens
August 5, 2009 12:36
Re: better readline?
Message ID:
On Wed, Aug 5, 2009 at 14:52, Bryan R Harris<> wrote:
> I didn't change anything, actually -- it never printed the "8/2 Updated
> database" string.  It prompted with the "Enter a date and note:", I typed
> "Uh." and that was it.  Maybe my version of perl doesn't have a good
> Term::Readline::Perl?  How do I find out?  I'm on OS X 10.5, which is still
> at perl 5.8.8.

Hmm, it looks like Term::ReadLine::Perl needs to be installed.  You
can get it on CPAN:

>> A method is a subroutine called on an object:
>> $obj->method();
> I've never used objects -- do I need to understand them to use
> Term::Readline?

Not really, you just need to know that you create an object by saying

my $obj = Class->new(some arguments);

and that you call functions on an object by saying

$obj->function_name(some arguments);

Chas. Owens
The most important skill a programmer can have is the ability to read.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About