hello,
I am trying to replace variables in a string (indicated by
/\$\w+/), but am for some reason unsucessfull. This will probbably illustrate the problem best:
DB<7> x $sql
0 'This string represents a SQL statement $replaceme'
DB<8> x $what
0 '$replaceme'
DB<9> x $with
0 'value'
DB<10> $sql=~s/$what/$with/
DB<11> x $sql
0 'This string represents a SQL statement $replaceme'
What i am trying to achieve is
$sql eq 'This string represents a SQL statement value'
Any suggestions what i am doing wrong here?