On Fri, Apr 12, 2002 at 04:42:07PM +0100, Piers Cawley wrote: > [EMAIL PROTECTED] writes: > > > > Why isn't > > > > if %foo {"key"} {print "Hello 1"} > > > > equivalent with the perl5 syntax: > > > > if (%foo) {"key"} {print "Hello 1"} > > > > Which keyword is it expecting? > > Keyword /els(e|if)/, or end of line, or semicolon. Sorry badly phrased > on my part. The closing brace of {"key"} only ends the statement if it > is followed by /\s*$/, or a semicolon. Hold on--why end of line? That should only make a difference if } is the only thing on the line...
Luke