diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-09-17 23:18:08 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-09-17 23:20:26 -0700 |
commit | 8561ea1dd1a3357825e765e1df4f883e53f89a9d (patch) | |
tree | fd16385d6265ed60c2ceb1e718f0c37d0ec14d0c /pod/perlvar.pod | |
parent | 79bffe477e0016f596b86950244ad3a10a753e58 (diff) | |
download | perl-8561ea1dd1a3357825e765e1df4f883e53f89a9d.tar.gz |
${^LAST_FH}
This was brought up in ticket #96672.
This variable gives access to the last-read filehandle that Perl uses
when it appends ", <STDIN> line 1" to a warning or error message.
Diffstat (limited to 'pod/perlvar.pod')
-rw-r--r-- | pod/perlvar.pod | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 69e18ce498..fc99b8e23c 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -1401,6 +1401,17 @@ how to select the output channel. See also L<IO::Handle>. Mnemonic: when you want your pipes to be piping hot. +=item ${^LAST_FH} +X<${^LAST_FH}> + +This read-only variable contains a reference to the last-read filehandle. +This is set by C<< <HANDLE> >>, C<readline>, C<tell>, C<eof> and C<seek>. +This is the same handle that C<$.> and C<tell> and C<eof> without arguments +use. It is also the handle used when Perl appends ", <STDIN> line 1" to +an error or warning message. + +This variable was added in Perl v5.18.0. + =back =head3 Variables related to formats |