escape the character using \
 
 s/\&/and/;
 
 
-------Original Message-------
 
Date: Saturday, February 28, 2004 09:18:49 AM
Subject: "&" substitution
 
How can I match the "&" symbol?
 
$_ = "test & test";
s/&/and/; # expect test and test but get test & test
 
thanks,
 
Jeff
 
 
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.596 / Virus Database: 379 - Release Date: 2/26/2004
 
 
 
_______________________________________________
ActivePerl mailing list
.
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to