Hi I have a problem with printf/sprintf
Basically I have this code: printf "%-50s %10.2f\n", $item, $price; This code prints a line that is 61 chars long with the Item's name on the Left and Price on the right. However, I want to make it variable width based on either screen width, or user input: ie, print "%-$Ws %10.2f\n", $item, $price; Obviously, this does not work. How do I code it to work like i want it? Dan
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs