Skip to content

Commit

Permalink
Edited first half of functions chapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed Sep 13, 2011
1 parent be6c756 commit e2686ba
Show file tree
Hide file tree
Showing 4 changed files with 321 additions and 360 deletions.
10 changes: 5 additions & 5 deletions sections/chapter_05.pod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ X<function>
X<subroutine>

A I<function> (or I<subroutine>) in Perl is a discrete, encapsulated unit of
behavior. It may or may not have a name. It may or may not consume incoming
information. It may or may not produce outgoing information. It represents a
type of control flow, where the execution of the program proceeds to another
point in the source code.
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; many other mechanisms build on the idea of the function.
Perl 5.

L<functions>

Expand Down
Loading

0 comments on commit e2686ba

Please sign in to comment.