summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2003-09-02 08:06:29 -0700
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-09-02 21:21:27 +0000
commit593b9c1462e1fc8a2425e215f64b2197e1bfb796 (patch)
tree5b1548360e92d455d448f14c7d59cf5dc7f03123 /pod/perlsub.pod
parent16e0ce555006838e58e7d577abeb6130585428b8 (diff)
downloadperl-593b9c1462e1fc8a2425e215f64b2197e1bfb796.tar.gz
some method calls not autoloaded
Message-ID: <20030902220629.GA2952@efn.org> p4raw-id: //depot/perl@21007
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 2969341ca1..719197e571 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -1259,7 +1259,7 @@ C<require> replacement as C<require Foo::Bar>, it will actually receive
the argument C<"Foo/Bar.pm"> in @_. See L<perlfunc/require>.
And, as you'll have noticed from the previous example, if you override
-C<glob>, the C<E<lt>*E<gt>> glob operator is overridden as well.
+C<glob>, the C<< <*> >> glob operator is overridden as well.
In a similar fashion, overriding the C<readline> function also overrides
the equivalent I/O operator C<< <FILEHANDLE> >>.
@@ -1279,7 +1279,8 @@ been passed to the original subroutine. The fully qualified name
of the original subroutine magically appears in the global $AUTOLOAD
variable of the same package as the C<AUTOLOAD> routine. The name
is not passed as an ordinary argument because, er, well, just
-because, that's why...
+because, that's why. (As an exception, a method call to a nonexistent
+C<import> or C<unimport> method is just skipped instead.)
Many C<AUTOLOAD> routines load in a definition for the requested
subroutine using eval(), then execute that subroutine using a special
@@ -1305,7 +1306,7 @@ even need parentheses:
use subs qw(date who ls);
date;
who "am", "i";
- ls -l;
+ ls '-l';
A more complete example of this is the standard Shell module, which
can treat undefined subroutine calls as calls to external programs.