Feb 19, 2001 #1 calabama Programmer Joined Feb 19, 2001 Messages 180 Location US How do I print the actual name of a scalar variable and not the contents?
Feb 19, 2001 1 #2 sackyhack Programmer Joined Nov 6, 2000 Messages 39 Location CA Is this what you mean? You just need to escape the $ at the front of the scalar. Code: # This will print the name of the scalar '$s' and its value: print "\$s = $s\n"; Upvote 0 Downvote
Is this what you mean? You just need to escape the $ at the front of the scalar. Code: # This will print the name of the scalar '$s' and its value: print "\$s = $s\n";