Note that this uses eval, which isn't everyone's thing.$test = "hello"; $s = "(hello)"; $r = '"$1 world"'; $test =~ s/$s/eval $r/e; print $test;
In reply to Re^3: $ variables in command line
by tadman
in thread $ variables in command line
by cruelmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |