Subroutine formal parameters (cont'd)
Named parameters:
sub formalize ($text, $:case, $:justify) { ... }
This can then be called using a variety of syntaxes:
$formal = formalize($title, case => 'upper'); $formal = formalize($title, :justify($xyz) ); $formal = formalize($title, :case<upper>, :justify<left>);