[perl #77218] Using Perl6 PDF: Some subroutine examples don't work when declared before call

2010-08-14 Thread via RT
# New Ticket Created by James Keenan # Please include the string: [perl #77218] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77218 The New York City Rakudo Star study group is working its way through the Using

Re: [perl #77218] Using Perl6 PDF: Some subroutine examples don't work when declared before call

2010-08-14 Thread Patrick R. Michaud
On Sat, Aug 14, 2010 at 10:55:57AM -0700, James Keenan wrote: FAILS: use v6; sub orderbeer($type, $pints) { say ($pints == 1 ?? 'A pint' !! $pints pints) ~ of $type, please.; } orderbeer('Hobgoblin', 1); The problem here is that Rakudo is mis-interpreting the or that follows