In Perl if I do this:
print "$variable\n";
I get the contents of $variable
How do I print $variable as a text string and not it's contents?
For example, in Visual Basic, I can do this
Dim Name As String
Name = "James Rickland"
Print "Name = " & Name
and it appears like this: Name = James Rickland
This is what I want to do in Perl
print "$variable = $variable\n";
How to show $variable = as text




Reply With Quote