Path: utzoo!attcan!uunet!aplcen!haven!uvaarpa!mmdf From: worley@compass.com (Dale Worley) Newsgroups: comp.lang.perl Subject: Is this a bug? Message-ID: <1990Aug13.160128.12215@uvaarpa.Virginia.EDU> Date: 13 Aug 90 16:01:28 GMT Sender: mmdf@uvaarpa.Virginia.EDU (Uvaarpa Mail System) Reply-To: worley@compass.com Organization: The Internet Lines: 21 X-Name: Larry Wall It was misinterpreting $) in patterns as a variable. At patchlevel 27 it's interpreted correctly as an end of line check and a terminating paren. Which means you can't interpolate $) into a pattern directly. $/ has never been a problem. Well, what exactly are the rules for which variables can be used in regexps and which can't? That is, why is interpreting "$)" as e-o-l and paren correct and interpreting it as a variable incorrect? I guess I don't really need an answer here, but I hope that the book will be enough of a language reference that all such questions will be answered by it. Dale Worley Compass, Inc. worley@compass.com -- "I have the same insecurities as Woody Allen." "Yes, but he's paid more for having them."