UnevenGuy has asked for the wisdom of the Perl Monks concerning the following question:
I'm printing a line with some text, then a variable, then some text with a capital U with no spaces between the variable and the capital U. it looks like
print "Something$variable\Unselected.gif";
but this makes everything after the \U in caps. The only solution I came up with to do this is by using a \E to separate the variable like this
print "Something$variable\EUnselected.gif";
is there a better way I should be using to do this while maintaining the capitalization I want? Thanks for the help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Escaping \U
by Athanasius (Archbishop) on Nov 26, 2016 at 07:42 UTC | |
|
Re: Escaping \U
by Corion (Patriarch) on Nov 26, 2016 at 08:23 UTC |