There's more than one way to do things | |
PerlMonks |
Escaping a variableby Draxter (Initiate) |
on Nov 08, 2011 at 09:09 UTC ( [id://936686]=perlquestion: print w/replies, xml ) | Need Help?? |
Draxter has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to escape a variable with the \x special character, so it will be printed as a hex character. I only manage to do this when I statically define variable, for example:
But when i try to add the \x to an already existing variable, I always get an "Illegal hexadecimal digit '$' ignored" error message:
What am I doing wrong here, and is it solvable? Thanks, Eran
Back to
Seekers of Perl Wisdom
|
|