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";
In reply to Re: Reading special characters from file?
by suaveant
in thread Reading special characters from file?
by jbwiv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |