Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 550 Bytes

chapter_05.pod

File metadata and controls

27 lines (17 loc) · 550 Bytes

A function (or subroutine) in Perl is a discrete, encapsulated unit of behavior. A program is a collection of little black boxes where the interaction of these functions governs the control flow of the program. A function may have a name. It may consume incoming information. It may produce outgoing information.

Functions are a prime mechanism for abstraction, encapsulation, and re-use in Perl 5.

functions

scope

anonymous_functions

closures

state

attributes

autoload

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 1:

Unknown directive: =head0