in reply to <<, variable, and single quote behaving badly.

$ cat monk.pl #!/usr/bin/perl -w use strict; my $x = 'Dwayne Johnson'; print <<XXX; ${x}'s the Sock. XXX $ ./monk.pl Dwayne Johnson's the Sock.
Think about it ... say if you wanted to say:
Dwayne Johnson_s the Sock.
Would you say ...
print <<XXX; $x_s the Sock. XXX
... now is $x_s a variable or not? {} and \ tell << that x is a variable.

Plankton: 1% Evil, 99% Hot Gas.