On Wed, Dec 13, 2006 at 11:31:33AM -0800, Ovid wrote:
>   *** Cannot use this control structure outside a 'routine' structure
>       at 99.pugs line 103, column 13-22
> 
> Take out the returns, and it works fine.  Can someone tell me what I'm
> missing?  Is this a bug.

Perl 6 differentiates between a bare Code and Routine objects. Replacing
"->" with "sub" should get you what you want.

-- 
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/

Reply via email to