b2sing4u has asked for the wisdom of the Perl Monks concerning the following question:
In this case, is there any method to change Options within a program?$source = "abc"; $find = "a"; $replace = "x"; $source =~ s/$find/$replace/g; print $source;
tos/$find/$replace/g;
within a program.s/$find/$replace/gi;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I change substitution options within a program?
by ikegami (Patriarch) on Oct 31, 2006 at 08:06 UTC | |
|
Re: How do I change substitution options within a program?
by davido (Cardinal) on Oct 31, 2006 at 08:09 UTC | |
|
Re: How do I change substitution options within a program?
by holcapek (Sexton) on Oct 31, 2006 at 18:55 UTC | |
by crashtest (Curate) on Oct 31, 2006 at 23:28 UTC | |
by ikegami (Patriarch) on Oct 31, 2006 at 23:41 UTC | |
|
Re: How do I change substitution options within a program?
by gaspodethewonderdog (Monk) on Nov 01, 2006 at 14:58 UTC | |
by ikegami (Patriarch) on Nov 01, 2006 at 17:09 UTC |