[Appendix B] B.9 Typeglobs
Author: Sriram Srinivasan
Date: 1999-07-02T01:43:25Z

#

| Appendix B Syntax Summary |

## B.9 Typeglobs

31. Typeglobs assignment aliases identifiers. In the following example, all identifiers named `a` (scalar, array, hash, subroutine, filehandle, format) are also available as `b`:

        *a = *b ;     # Alias
        $b = 10;      # Same as modifying $a
        b();          # Same as calling a()

32. Selective aliasing:

        *a = \$b ;    # Only $a aliased to $b

33. Constants:

        *a = \10;     # Alias a typeglob to a reference to a constant
        $a = 20;      # Run-time error - "Attempt to modify read-only variable"

B.8 Meta-Information |  | B.10 Filehandles, Formats