NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Of course, the right way to write that... (Score:1)
… is like this:
(I’ve no idea if that actually works in the current state of Rakudo.)
Reply to This
Re: (Score:2)
No, the right way to write that is:
:)
Re:Of course, the right way to write that… (Score:1)
(Actually, that should be :-))
>=– factorial is defined for zero.Re: (Score:1)
Hmm, except
1 .. 0won’t work right, so then it needs to be[*] 1 .. min( 1, $n ), which is a little uglier, though manageable.Re: (Score:1)
Re: (Score:1)
Err, yes.