$source = "abc"; $find = "a"; $replace = "x"; $opt = "g"; eval "\$source =~ s/$find/$replace/$opt"; print $source;
In reply to Re: How do I change substitution options within a program?
by gaspodethewonderdog
in thread How can I change substitution options within a program?
by b2sing4u
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |