4.3. Invoking a SubroutineInvoke a subroutine from within any expression by using the subroutine name (with the ampersand):[103]
&marine; # says Hello, sailor number 1! &marine; # says Hello, sailor number 2! &marine; # says Hello, sailor number 3! &marine; # says Hello, sailor number 4! Sometimes, we refer to the invocation as calling the subroutine. Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|