develooper Front page | perl.beginners | Postings from April 2003

Escaping @ symbol inside a regular expression

Thread Next
From:
Raja Kasinathan
Date:
April 29, 2003 04:51
Subject:
Escaping @ symbol inside a regular expression
Message ID:
689F43A6CF84E541A721C5C3FD5ADECC26AB60@blr-m3-msg.wipro.com

I have a pattern like s/\b\@interrupt\b//gi; This doesn't remove the
word @interrupt.
from my input data
"@interrupt void interrupt_handler(void)"
 
If I don't escape @, I get a warning "Possible unintended interpolation
of @interrupt in string".
Can anyone help me regarding this?
 
Cheers,
Raja

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About