I have changed it to:
if ($grp =~ /E\$/) {
$grp = "E\$";
}
This however still does not grab the "E$" from the file, I have done it
several ways to try and get it to work.
Thanks,
Tim
-----Original Message-----
From: Adriano Rodrigues [mailto:[EMAIL PROTECTED]
Sent: Monday, November 13, 2006 9:58 AM
To: Tim Wolak; [email protected]
Subject: Re: two questions
On 11/13/06, Tim Wolak <[EMAIL PROTECTED]> wrote:
> Can anyone tell me why when matching E$ option it finds ZE instead?
$ is special in regexps. Used like that /(E$)/, it means a string
which where you find 'E' at the end of line. To match literal 'E$' you
need to say /(E\$)/ to make the dollar lose its special nature.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>