Thank you Luke and Autrijus, and Jesse Vincent for the test case.
-kolibrie
On Mon, Mar 14, 2005 at 11:29:58PM +0800, Autrijus Tang wrote:
> On Mon, Mar 14, 2005 at 10:15:25AM -0500, Nathan Gray wrote:
> > But unfortunately, this did not:
> > pugs> sub formalize($text, +$case) { say $text } f
On Mon, Mar 14, 2005 at 10:15:25AM -0500, Nathan Gray wrote:
> 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 at line 1, column 44
Aye, b
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',
>
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:
unexpect