summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-01-15 00:03:04 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-15 01:23:53 +0000
commit9b3023bc082e94b9899c0042ba030062098682a6 (patch)
tree6d94b2930c87893a42b97476460fc5d275f23850 /pod/perlsub.pod
parent9ce38ebc6b92fe51912fbf2f7ebcca58be688dbe (diff)
downloadperl-9b3023bc082e94b9899c0042ba030062098682a6.tar.gz
[PATCH] Overriding readline() should also override <FH>
Date: Mon, 14 Jan 2002 23:03:04 +0100 Message-ID: <20020114230304.A691@rafael> Subject: Re: [PATCH] Overriding readline() should also override <FH> From: Rafael Garcia-Suarez <rgarciasuarez@free.fr> Date: Mon, 14 Jan 2002 23:18:43 +0100 Message-ID: <20020114231843.E691@rafael> p4raw-id: //depot/perl@14260
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod3
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index a1bba6eb31..8ec39e35b9 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -1223,6 +1223,9 @@ 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.
+In a similar fashion, overriding the C<readline> function also overrides
+the equivalent I/O operator C<< <FILEHANDLE> >>.
+
Finally, some built-ins (e.g. C<exists> or C<grep>) can't be overridden.
=head2 Autoloading