Hello UnevenGuy, and welcome to the Monastery!
Just put the variable name (but not the sigil) into curly brackets:
17:39 >perl -wE "my $variable = 'abc'; say qq[Something${variable}Unse +lected.gif];" SomethingabcUnselected.gif 17:40 >
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Escaping \U
by Athanasius
in thread Escaping \U
by UnevenGuy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |