diff options
author | chromatic <chromatic@wgz.org> | 2006-09-01 02:12:45 -0700 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-09-04 12:41:39 +0000 |
commit | 63acfd0033368edc5dd21a89732267e5921511f1 (patch) | |
tree | 1682996f5aefdbfe31dbba57de31bcaf806124fc /pod/perllexwarn.pod | |
parent | ee6b43cc19efb39ed8a2fdad01d701e59dbdd946 (diff) | |
download | perl-63acfd0033368edc5dd21a89732267e5921511f1.tar.gz |
Re: AW: [PATCH pod/*] Use Direct Object Constructor Calls
Message-Id: <200609010912.46314.chromatic@wgz.org>
p4raw-id: //depot/perl@28778
Diffstat (limited to 'pod/perllexwarn.pod')
-rw-r--r-- | pod/perllexwarn.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perllexwarn.pod b/pod/perllexwarn.pod index 20f1875c0c..93ec769aa1 100644 --- a/pod/perllexwarn.pod +++ b/pod/perllexwarn.pod @@ -503,9 +503,9 @@ C<Derived>. use Original; use Derived; use warnings 'Derived'; - my $a = new Original; + my $a = Original->new(); $a->doit(1); - my $b = new Derived; + my $b = Derived->new(); $a->doit(1); When this code is run only the C<Derived> object, C<$b>, will generate |