----- Original Message ---- From: Bill Jones <[EMAIL PROTECTED]> To: begginers perl.org <beginners@perl.org> Sent: Sunday, January 21, 2007 1:03:33 PM Subject: Re: putting ";" as a replacement in the substitution.
On 1/20/07, Michael Alipio <[EMAIL PROTECTED]> wrote: > > my $string = 'vd=root,status='; > '> vd=root;status=' > $string =~ s[\,][\;]g; Oops, I only want to match the comma, right after vd=\w+.. My string might be: 'devid=234FB,vd=root,status=ok,logid=1235' I tried replacing my delimiters with [ ] but still it eats up "vd=\w+" -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2A46CF06&fingerprint=on -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265