summaryrefslogtreecommitdiff
path: root/lib/Term
diff options
context:
space:
mode:
authorRicardo SIGNES <rjbs@cpan.org>2009-01-20 18:32:17 -0500
committerVincent Pit <vince@profvince.com>2009-01-21 16:54:16 +0100
commit2b393bf410d9f1bf0b80132c4e8b5d6707a139f8 (patch)
treefba97a93f415d38a8053cb90ef68b23c24b7de7e /lib/Term
parent797f796a9610b63f252016d76732152c8ff9fb39 (diff)
downloadperl-2b393bf410d9f1bf0b80132c4e8b5d6707a139f8.tar.gz
now get non-dual lived code
Diffstat (limited to 'lib/Term')
-rw-r--r--lib/Term/ReadLine.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Term/ReadLine.pm b/lib/Term/ReadLine.pm
index c1d17621f1..d251271056 100644
--- a/lib/Term/ReadLine.pm
+++ b/lib/Term/ReadLine.pm
@@ -6,7 +6,7 @@ If no real package is found, substitutes stubs instead of basic functions.
=head1 SYNOPSIS
use Term::ReadLine;
- my $term = new Term::ReadLine 'Simple Perl calc';
+ my $term = Term::ReadLine->new('Simple Perl calc');
my $prompt = "Enter your arithmetic expression: ";
my $OUT = $term->OUT || \*STDOUT;
while ( defined ($_ = $term->readline($prompt)) ) {
@@ -26,7 +26,7 @@ CPAN (under the C<Term::ReadLine::*> namespace).
All the supported functions should be called as methods, i.e., either as
- $term = new Term::ReadLine 'name';
+ $term = Term::ReadLine->new('name');
or as