As you may have noticed in the previous example, you may use any
global variables within the subroutine body. In fact, all of the
variables we've seen so far are globals; that is, they are
accessible from every part of your program. This horrifies linguistic
purists, but the Perl development team formed an angry mob with
torches and ran them out of town years ago. We'll see how to
make private variables in the section "Private Variables in
Subroutines" later in this chapter.
 |  |  |
4. Subroutines |  | 4.3. Invoking a Subroutine |