I'm sure there's a good reason for it, but the code below gives a syntax error. I think it ought to do what it looks like it ought to do. What's the reason? $foo = 'bar'; $foo =~ /bar/ and {print "yes"; print "yes again";} gives: syntax error at test line 2, near "; print" $foo = 'bar'; $foo =~ /bar/ and {print "yes";} gives: syntax error at test line 2, near ";}" $foo = 'bar'; $foo =~ /bar/ and {print "yes"} prints "yes" as expected. What's going on, eh? -- Jonathan Peterson Technical Manager, Unified Ltd, 020 7383 6092 [EMAIL PROTECTED]
- Not Matt's Scripts Dave Hodgkinson
- Re: Not Matt's Scripts Mark Fowler
- Re: Not Matt's Scripts Dave Hodgkinson
- Re: Not Matt's Scripts Dave Cross
- Re: Not Matt's Scripts Dave Hodgkinson
- Re: Not Matt's Scripts Paul Makepeace
- Re: Not Matt's Scripts Richard Clamp
- Re: Not Matt's Scripts Dave Hodgkinson
- Re: Not Matt's Scripts Robin Szemeti
- Re: Mailbox power .. Jonathan Peterson
- Re: Funny thing Jonathan Peterson
- Re: Funny thing Jonathan Stowe
- Re: Funny thing Jonathan Peterson
- Re: Funny thing Robin Houston
- Re: Migrating South (was Good Accountants) David H. Adler
- Re: Migrating South (was Good Accountants) Jonathan Stowe
- Re: Migrating South (was Good Accountants) Greg McCarroll
- Re: Migrating South (was Good Accountants) David Cantrell
- Re: Migrating South (was Good Accountants) Lucy McWilliam
- Re: Good Accountants (?) Jonathan Peterson
- Re: Good Accountants (?) Alex Page