LPM: Silly string question

David Hempy hempy at ket.org
Fri Dec 10 14:23:18 CST 1999


Okay, I want to print the size of an image, so I write:

	print "Size: $width x $height.\n";

...but I'd rather not have the spaces around the "x".  Of course, the
following does not work:

	print "Size: $widthx$height.\n";

So I ended up doing this:

	print "Size: $width" . "x$height.\n";

Which is fine and dandy, but requires seven extra keystrokes (including
shifts).  My goal in my professional life is to reduce the total number of
keystrokes my fingers must endure.  Is there some "end of identifier"
operator or other perl magic that might fill the bill?

Lazily yours,
-dave  ;-)




--
David Hempy
Internet Database Administrator
Kentucky Educational Television




More information about the Lexington-pm mailing list