Just another Perl shrine | |
PerlMonks |
Escapes and comments in Config::Generalby John M. Dlugosz (Monsignor) |
on Mar 22, 2011 at 13:33 UTC ( [id://894796]=perlquestion: print w/replies, xml ) | Need Help?? |
John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:
I had a line in my conf file that was something like: foo 16′ roll and when I read it in I got “16&”. Ah, the # starts a comment. So I changed it to foo 16&\#x2032; roll And now I get “16&\#2320 roll” ! The backslash stopped the # from being a comment, but the slash itself was also in the string! There is an example of this in the manual, so it is clearly supposed to work that way. I just can't win today <sigh>. What's going on here?
Back to
Seekers of Perl Wisdom
|
|