summaryrefslogtreecommitdiff
path: root/pod/perlcall.pod
diff options
context:
space:
mode:
authorRicardo SIGNES <rjbs@cpan.org>2009-01-20 18:21:34 -0500
committerVincent Pit <vince@profvince.com>2009-01-21 16:48:31 +0100
commit797f796a9610b63f252016d76732152c8ff9fb39 (patch)
tree63c43409db45ec372a6118881a0299ad9022b10c /pod/perlcall.pod
parent8253c7d6f3a6d423dafff6207f708e56413f162d (diff)
downloadperl-797f796a9610b63f252016d76732152c8ff9fb39.tar.gz
remove some indirect method calls, add a caveat
Diffstat (limited to 'pod/perlcall.pod')
-rw-r--r--pod/perlcall.pod6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perlcall.pod b/pod/perlcall.pod
index 08173d2e69..06f3aa33c7 100644
--- a/pod/perlcall.pod
+++ b/pod/perlcall.pod
@@ -1218,9 +1218,9 @@ virtual. The static method, C<PrintID>, prints out simply the class
name and a version number. The virtual method, C<Display>, prints out a
single element of the array. Here is an all Perl example of using it.
- $a = new Mine ('red', 'green', 'blue');
+ $a = Mine->new('red', 'green', 'blue');
$a->Display(1);
- PrintID Mine;
+ Mine->PrintID;
will print
@@ -1277,7 +1277,7 @@ the C<PrintID> and C<Display> methods from C.
So the methods C<PrintID> and C<Display> can be invoked like this
- $a = new Mine ('red', 'green', 'blue');
+ $a = Mine->new('red', 'green', 'blue');
call_Method($a, 'Display', 1);
call_PrintID('Mine', 'PrintID');