Is it possible to interpolate the contents of a variable into an escape sequence?
Something like
# print LINEFEED, FORMFEED, and CARRIAGE RETURN
print "\c$_" foreach ('J', 'L', 'M');
I have tried:
my $x = "L";
print "\c$x";
my $x = "L";
print eval "\c$x";
my $x = '\c';
my $y = 'L';
print...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.