lib/byte.pm Pragma to enable byte operations
lib/byte_heavy.pl Support routines for byte pragma
lib/cacheout.pl Manages output filehandles when you need too many
-lib/caller.pm Inherit pragmatic attributes from caller's context
lib/charnames.pm Character names
lib/chat2.pl Obsolete ipc library (use Comm.pm etc instead)
lib/complete.pl A command completion subroutine
+++ /dev/null
-package caller;
-our $VERSION = "1.0";
-
-=head1 NAME
-
-caller - inherit pragmatic attributes from the context of the caller
-
-=head1 SYNOPSIS
-
- use caller qw(encoding);
-
-=head1 DESCRIPTION
-
-This pragma allows a module to inherit some attributes from the
-context which loaded it.
-
-Inheriting attributes takes place at compile time; this means
-only attributes that are visible in the calling context at compile
-time will be propagated.
-
-Currently, the only supported attribute is C<encoding>.
-
-=over
-
-=item encoding
-
-Indicates that the character set encoding of the caller's context
-must be inherited. This can be used to inherit the C<use utf8>
-setting in the calling context.
-
-=back
-
-=cut
-
-my %bitmask = (
- # only HINT_UTF8 supported for now
- encoding => 0x8
-);
-
-sub bits {
- my $bits = 0;
- for my $s (@_) { $bits |= $bitmask{$s} || 0; };
- $bits;
-}
-
-sub import {
- shift;
- my @cxt = caller(3);
- if (@cxt and $cxt[7]) { # was our parent require-d?
- $^H |= bits(@_) & $cxt[8];
- }
-}
-
-sub unimport {
- # noop currently
-}
-
-1;
Earlier versions always opened the DATA filehandle in text mode.
The glob() operator is implemented via the L<File::Glob> extension,
-which supports glob syntax of the C<csh>. This increases the flexibility
+which supports glob syntax of the C shell. This increases the flexibility
of the glob() operator, but there may be compatibility issues for
programs that relied on the older globbing syntax. If you want to
preserve compatibility with the older syntax, you might want to put
C<use utf8> to enable UTF-8 and Unicode support.
-C<use caller 'encoding'> allows modules to inherit pragmatic attributes
-from the caller's context. C<encoding> is currently the only supported
-attribute.
-
Lexical warnings pragma, C<use warnings;>, to control optional warnings.
See L<perllexwarn>.
$filename is C<(eval)>, but $evaltext is undefined. (Note also that
each C<use> statement creates a C<require> frame inside an C<eval EXPR>)
frame. C<$hints> contains pragmatic hints that the caller was
-compiled with. It currently only reflects the hint corresponding to
-C<use utf8>.
+compiled with. The C<$hints> value is subject to change between versions
+of Perl, and is not meant for external use.
Furthermore, when called from within the DB package, caller returns more
detailed information: it sets the list variable C<@DB::args> to be the