summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2014-09-30 00:25:27 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2014-09-30 08:17:50 +0200
commit80a96bfc62584b11992aecd2fb33c6f21cfc24b9 (patch)
tree147fd9f92585167a9c1741a319338bc0f8bfad61 /pod/perlop.pod
parentc6f54c1d24664c889a16e7f7d380041a2696f957 (diff)
downloadperl-80a96bfc62584b11992aecd2fb33c6f21cfc24b9.tar.gz
Clarify the documentation for <<>>
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 8e279febad..07bcaf9868 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -2853,7 +2853,7 @@ mean C</^/m>.
=head2 I/O Operators
X<operator, i/o> X<operator, io> X<io> X<while> X<filehandle>
-X<< <> >> X<@ARGV>
+X<< <> >> X<< <<>> >> X<@ARGV>
There are several I/O operators you should know about.
@@ -2987,7 +2987,9 @@ can use the module C<ARGV::readonly> from CPAN, or use the double bracket:
Using double angle brackets inside of a while causes the open to use the
three argument form (with the second argument being C<< < >>), so all
-arguments in ARGV are treated as literal filenames.
+arguments in ARGV are treated as literal filenames (including "-").
+(Note that for convenience, if you use C<< <<>> >> and if @ARGV is
+empty, it will still read from the standard input.)
You can modify @ARGV before the first <> as long as the array ends up
containing the list of filenames you really want. Line numbers (C<$.>)