Assuming you are trying to set $ XYZ to an ABC try string:
$XYZ = 'ABC'
If you use
my $XYZ='ABC'
it will only define the $ XYZ variable in the current scope. From testing in the debugger, it looks like this area does not extend outside the debugging console (i.e., it is available only in this console line). For instance.
DB<2> my $x = "hello"; print "$x" hello DB<3> print $x Use of uninitialized value $x in print at (eval 8)[/usr/share/perl/5.12/perl5db.pl:638] line 2.
source share