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

Re: better readline?

Thread Previous | Thread Next
From:
Chas. Owens
Date:
August 5, 2009 12:36
Subject:
Re: better readline?
Message ID:
58ce48dc0908051236t1b0bf03cm4eca211afcc8e914@mail.gmail.com
On Wed, Aug 5, 2009 at 14:52, Bryan R Harris<Bryan_R_Harris@raytheon.com> wrote:
snip
> 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.
snip

Hmm, it looks like Term::ReadLine::Perl needs to be installed.  You
can get it on CPAN: http://search.cpan.org/dist/Term-ReadLine-Perl

snip
>> 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?
snip

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
wonkden.net
The most important skill a programmer can have is the ability to read.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About