in reply to fixstyle script in PERL COOKBOOK
Output:#!/usr/bin/perl $string = "a\@b.c\n"; $string =~ s#\Qa@b.c\E#email-address#g; print $string; $string2 = "a\@b.c\n"; $string2 =~ s#a\@b\.c#email-address#g; print $string2; $string3 = "a\@b.c\n"; $qm3 = quotemeta('a@b.c'); $string3 =~ s#$qm3#email-address#g; print $string3;
So it seems that method won't work correctly. Perhaps another Monk can enlighten.a@b.c email-address email-address
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: fixstyle script in PERL COOKBOOK
by Anonymous Monk on Apr 20, 2001 at 23:05 UTC | |
by tilly (Archbishop) on Apr 21, 2001 at 08:04 UTC |