Feb 19, 2001 #1 calabama Programmer Feb 19, 2001 180 US How do I print the actual name of a scalar variable and not the contents?
Feb 19, 2001 1 #2 sackyhack Programmer Nov 6, 2000 39 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";