Re: problem with print

2008-08-11 Thread Justin Allegakoen
2008/8/11 Brian Raven <[EMAIL PROTECTED]> > Tobias Hoellrich <> wrote: > > Try: > > $|++; > > to unbuffer STDOUT. > > > > Hope this helps - Tobias > > Not quite. That variable activates autoflush, which isn't > quite the same as unbuffered output, on the currently selected > filehandle, which

RE: problem with print

2008-08-11 Thread Brian Raven
Tobias Hoellrich <> wrote: > Try: > $|++; > to unbuffer STDOUT. > > Hope this helps - Tobias Not quite. That variable activates autoflush, which isn't quite the same as unbuffered output, on the currently selected filehandle, which may not actually be STDOUT (see 'perldoc perlvar'). Also,

Re: problem with print

2008-08-10 Thread Tobias Hoellrich
Try: $|++; to unbuffer STDOUT. Hope this helps - Tobias On Aug 10, 2008, at 4:16 PM, "Daniel Burgaud" <[EMAIL PROTECTED]> wrote: > Hi > > I have a simple script that uses print in a loop to update the > screen something like this: > > for ( ) { > . > . > . > print "."; > }

problem with print

2008-08-10 Thread Daniel Burgaud
Hi I have a simple script that uses print in a loop to update the screen something like this: for ( ) { . . . print "."; } print "\n"; The problem, while within the loop, the screen does not update. Only once print "\n" is encountered will the screen display the whole printout.

Re: Problem with print function

2006-05-09 Thread Karl-Heinz Kuth
Suresh, Why not use brackets?: print (($char x $number_of_chars . "\n" ) x $number_of_lines, "\n"); that's one way to do it. I did not set the outer brackets. :-* Thanks Karl-Heinz ___ Perl-Win32-Users mailing list Perl-Win32-Users@listser

Re: Problem with print function

2006-05-09 Thread Karl-Heinz Kuth
Timothy, How about this: print $char x $number_of_chars . "\n" for 1..$number_of_lines; that's another way to do it. Thanks for the hint. This looks a little more smarter than the other solution, but that's only my opinion. I find it more readable. Thanks Karl-Heinz

RE: Problem with print function

2006-05-08 Thread Suresh Govindachar
Karl-Heinz Kuth wrote: > I've got the following problem: > > use strict; > use warnings; > > my $char = "-"; > my $number_of_lines = 3; > my $number_of_chars = 20; > > print "This is the output I want: \n"; > my $line = $char x $number_of_chars . "\n"; > print $lin

RE: Problem with print function

2006-05-08 Thread Timothy Johnson
How about this: print $char x $number_of_chars . "\n" for 1..$number_of_lines; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl-Heinz Kuth Sent: Monday, May 08, 2006 4:30 PM To: perl-win32-users@listserv.ActiveState.com Subject: Problem

Problem with print function

2006-05-08 Thread Karl-Heinz Kuth
Hi, I've got the following problem: use strict; use warnings; my $char = "-"; my $number_of_lines = 3; my $number_of_chars = 20; print "This is the output I want: \n"; my $line = $char x $number_of_chars . "\n"; print $line x $number_of_lines, "\n"; # I do not want to use the var $line. So ho