Nathan Gray writes: > I tried using named parameters (S06) and found this to work: > > pugs> sub formalize($text, +$case) { say $text } formalize('hello'); > hello > bool::true > > But unfortunately, this did not: > > pugs> sub formalize($text, +$case) { say $text } formalize('hello', > case=>'upper'); > *** Error: > unexpected "f" > expecting term, ";" or end of input > at <interactive> at line 1, column 44
That's just because => doesn't autoquote its left side yet. Try: sub formalize($text, +$case) { say $text } formalize('hello', 'case' => 'upper'); Luke