From: "Rob Dixon" <[EMAIL PROTECTED]> > Yes. A the semicolon is a statement separator in Perl. Unlike C, > where it is a statement terminator and the final semicolon is > required. Null statements are also allowed, so > > ( return 99; } > > is the same as > > { return 99 } > > or > > { return 99; ; ; ; ; ; ; }
As you can see if you ask Perl to show you how did it parse the code: perl -MO=Deparse -e "sub foo {return 99}" perl -MO=Deparse -e "sub foo {return 99;}" perl -MO=Deparse -e "sub foo {return 99;;;;;;;}" See perldoc B::Deparse Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]