no21 has asked for the wisdom of the Perl Monks concerning the following question:
Yet, when the code runs, instead of printing a period each time a file has been transferred, it waits to print out all of the periods all at once after all of the files have been transferred.for(@files){ $ftp->put($_) || die("Couldn't put file:$_\n."); print "."; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing inside a loop
by kutsu (Priest) on Feb 10, 2006 at 21:53 UTC | |
|
Re: Printing inside a loop
by GrandFather (Saint) on Feb 10, 2006 at 21:56 UTC | |
|
Re: Printing inside a loop
by Fletch (Bishop) on Feb 10, 2006 at 21:54 UTC | |
|
Re: Printing inside a loop
by mbeast (Beadle) on Feb 10, 2006 at 21:53 UTC |