1 # Copyright (C) 2007-2009, Parrot Foundation.
6 PIR is a subroutine-based or "procedural" programming language.
7 Subroutines are used to break large tasks into smaller chunks. These
8 chunks can be used and reused throughout the program. Subroutines
9 are defined with the C<.sub> directive and continue until the C<.end>
12 Subroutines can take any number of input parameters, and can return
13 any number of output parameters. In practice, we recommend you don't
14 go overboard with creating huge argument lists because it gets very
15 messy and difficult to deal with very quickly.
29 .local string greeting
30 greeting = "Hello, " . name
39 # vim: expandtab shiftwidth=4 ft=pir: