RE: Need help with printf/sprintf

2009-08-29 Thread BRZEZINSKI, PAUL
ehalf Of Daniel Burgaud Sent: Saturday, August 29, 2009 8:51 AM To: Perl-Win32-Users Subject: Need help with printf/sprintf 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 Ite

Re: Need help with printf/sprintf

2009-08-29 Thread Gabor Szabo
On Sat, Aug 29, 2009 at 3:51 PM, Daniel Burgaud wrote: > 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 wa

Need help with printf/sprintf

2009-08-29 Thread Daniel Burgaud
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