Thanks Adriano!

That worked, so basicly what the \Q \E is doing is searching for
non-word characters from the beginning of the line and then stops after
the "E$" in my variable?  

Thanks again for your help!!

Tim

-----Original Message-----
From: Adriano Rodrigues [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 13, 2006 10:23 AM
To: Tim Wolak; beginners@perl.org
Subject: Re: two questions

On 11/13/06, Tim Wolak <[EMAIL PROTECTED]> wrote:
> 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.

You have problems because of the interpolation at the /$grp/
expression. Try /\Q$grp\E/, that will going quote all special
characters (including $) so that you can search for literal $.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to