diff options
author | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1989-12-21 07:38:27 +0000 |
---|---|---|
committer | Larry Wall <lwall@jpl-devvax.jpl.nasa.gov> | 1989-12-21 07:38:27 +0000 |
commit | 663a0e373fc859394758ec18df61983d1fad6d0a (patch) | |
tree | 3f9fb8655dfb87b37e01a05822923f40c177f63c /perl.man.4 | |
parent | d8f2e4ccb684dfafc2c7b30a318ebf5798a9a1a4 (diff) | |
download | perl-663a0e373fc859394758ec18df61983d1fad6d0a.tar.gz |
perl 3.0 patch #8 patch 7 continued
See patch 7.
Diffstat (limited to 'perl.man.4')
-rw-r--r-- | perl.man.4 | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/perl.man.4 b/perl.man.4 index 5f768aa9e8..a3ab60c3b5 100644 --- a/perl.man.4 +++ b/perl.man.4 @@ -1,7 +1,11 @@ ''' Beginning of part 4 -''' $Header: perl.man.4,v 3.0.1.3 89/11/17 15:32:25 lwall Locked $ +''' $Header: perl.man.4,v 3.0.1.4 89/12/21 20:12:39 lwall Locked $ ''' ''' $Log: perl.man.4,v $ +''' Revision 3.0.1.4 89/12/21 20:12:39 lwall +''' patch7: documented that package'filehandle works as well as $package'variable +''' patch7: documented which identifiers are always in package main +''' ''' Revision 3.0.1.3 89/11/17 15:32:25 lwall ''' patch5: fixed some manual typos and indent problems ''' patch5: clarified difference between $! and $@ @@ -912,9 +916,21 @@ Typically it would be the first declaration in a file to be included by the \*(L"do FILE\*(R" operator. You can switch into a package in more than one place; it merely influences which symbol table is used by the compiler for the rest of that block. -You can refer to variables in other packages by prefixing the name with -the package name and a single quote. +You can refer to variables and filehandles in other packages by prefixing +the identifier with the package name and a single quote. If the package name is null, the \*(L"main\*(R" package as assumed. +.PP +Only identifiers starting with letters are stored in the packages symbol +table. +All other symbols are kept in package \*(L"main\*(R". +In addition, the identifiers STDIN, STDOUT, STDERR, ARGV, ARGVOUT, ENV, INC +and SIG are forced to be in package \*(L"main\*(R", even when used for +other purposes than their built-in one. +Note also that, if you have a package called \*(L"m\*(R", \*(L"s\*(R" +or \*(L"y\*(R", the you can't use the qualified form of an identifier since it +will be interpreted instead as a pattern match, a substitution +or a translation. +.PP Eval'ed strings are compiled in the package in which the eval was compiled in. (Assignments to $SIG{}, however, assume the signal handler specified is in the @@ -978,7 +994,7 @@ Here is dumpvar.pl from the perl library: .fi Note that, even though the subroutine is compiled in package dumpvar, the -name of the subroutine is qualified so that it's name is inserted into package +name of the subroutine is qualified so that its name is inserted into package \*(L"main\*(R". .Sh "Style" Each programmer will, of course, have his or her own preferences in regards |