I am storing text stings in a database. when I have the string:
'some perl $variable' which would print as: some perl $variable how can I force interpolation of '$variable'? one idea I thought of was: #!/usr/bin/perl my $var='variable'; $string='some $var'; $string=~s/\$(\w+)/${$1}/gi; print "$string\n"; But it doesn't work. I want it to print "some variable". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>