in reply to (tye)Re3: Extract potentially quoted words
in thread Extract potentially quoted words
Or this should be illegal:$a = 3 # no semi needed here if ($a == 5) { print "b" }
Because if we need it as a separator, how come we don't need it consistently for those?if ($a == 5) { print "b" } if ($b == 2) { print "c" }
No, the current syntax mimics C syntax, where an expression is not a statement, but an expression followed by a semicolon is indeed a statement. Too bad that the terminology has gotten muddled somewhere, but Perl acts according to this definition regardless of how the manpages read.
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re4: Extract potentially quoted words
by tye (Sage) on Jun 07, 2001 at 03:13 UTC | |
|
Re: Re: (tye)Re3: Extract potentially quoted words
by dws (Chancellor) on Jun 07, 2001 at 03:51 UTC | |
|
Re: Re: (tye)Re3: Extract potentially quoted words
by Anonymous Monk on Jun 07, 2001 at 13:50 UTC |