On Thu, Jun 06, 2002 at 08:21:25PM +0100, Piers Cawley wrote: > Allison Randal <[EMAIL PROTECTED]> writes: > > > No, because rules are basically methods, just like grammars are > > basically classes. You would only need a semi-colon if you were defining > > an anonymous C<rule> (similar to an anonymous C<sub>): > > > > my $wordlist = rule { (\w+) [ , (\w+) ]* }; > > You wouldn't even need it then. Assuming you're following the closing > brace with nothing but white space and a newline.
I guess you're talking about the bit of A4 to do with "When do I put a semicolon after a curly?". But that is "if the final curly is on a line by itself". So you could get away with: my $wordlist = rule { (\w+) [ , (\w+) ]* } Allison