ismail has asked for the wisdom of the Perl Monks concerning the following question:
my $target = 'this is a test of the servise'; for my $is ($target =~ /is/) { $target =~ s//are/; } print "$target\n"; # yields "thare are a test of the servaree'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: s/// operator and undef question...
by merlyn (Sage) on Dec 13, 2000 at 05:30 UTC | |
|
Re: s/// operator and undef question...
by chromatic (Archbishop) on Dec 13, 2000 at 05:25 UTC | |
by merlyn (Sage) on Dec 13, 2000 at 05:41 UTC | |
|
s/// tomfoolery explained (again)
by japhy (Canon) on Dec 13, 2000 at 06:42 UTC | |
|
(Ovid) Re: s/// operator and undef question...
by Ovid (Cardinal) on Dec 13, 2000 at 05:29 UTC | |
|
Re: s/// operator and undef question...
by Fastolfe (Vicar) on Dec 13, 2000 at 05:34 UTC | |
|
Re: s/// operator and undef question...
by ismail (Acolyte) on Dec 13, 2000 at 05:37 UTC |