in reply to Reading special characters from file?
Update but if you were evalling it you could do$test = 'ab$cd'; print "$test\n"; #prints ab$cd\n #only when you actually have the $ in double quotes... print "ab$cd\n"; #do you need to worry about it
the \Q \E goes through a string escaping (\$) all non word characters.eval "\Q$test\E";
|
|---|