[perl #57876] An if statement isn't parsed correctly if it follows on a sub

2009-02-28 Thread Patrick R. Michaud via RT
On Sun Jun 22 13:04:51 2008, karavelov wrote: > There is some parse error for this simpe case: > ==code > use v6; > > sub ok ($num){ > $num; > } > > for 1..5000 { > ok($_); > } This is now fixed in 1e22a68, as well as the other cases where if/while/until/unless/for... were being incorrec

[perl #57876] An if statement isn't parsed correctly if it follows on a sub

2008-08-13 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #57876] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57876 > r30183: $ ./perl6 -e ' sub x { } if 1 { }' Statement not terminated properly at line 4,