Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
any help is appreciatedopen(FILE, $listfile); while(my $user = <FILE>) { $user =~ s/(\r|\n)//; # windows compatibility $userout .="$user,"; $lcount++; if ($lcount == 20) { print PIPE "$userout"; $lcount=0; } next if !$user; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: while loop over filehandle
by BrowserUk (Patriarch) on Sep 23, 2002 at 05:28 UTC | |
|
Re: while loop over filehandle
by spartacus9 (Beadle) on Sep 23, 2002 at 05:09 UTC | |
by diotalevi (Canon) on Sep 23, 2002 at 13:50 UTC | |
|
Re: while loop over filehandle
by Aristotle (Chancellor) on Sep 23, 2002 at 07:50 UTC | |
|
Re: while loop over filehandle
by kabel (Chaplain) on Sep 23, 2002 at 08:42 UTC | |
|
Re: while loop over filehandle
by Flexx (Pilgrim) on Sep 23, 2002 at 14:08 UTC |