godzirra has asked for the wisdom of the Perl Monks concerning the following question:
my $file = $q->upload('event_upload'); my $start_row = $q->param('row_start'); ## Toss out lines until we hit the specified start row if ($start_row) { for (1..$start_row) { my $garbage = <$file>; } } while (my $line = <$file>) { ### Do file stuff }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mac vs. PC line breaks
by Joost (Canon) on Aug 05, 2005 at 16:06 UTC | |
by ikegami (Patriarch) on Aug 05, 2005 at 17:24 UTC | |
by Joost (Canon) on Aug 05, 2005 at 18:19 UTC | |
|
Re: Mac vs. PC line breaks
by jhourcle (Prior) on Aug 05, 2005 at 16:07 UTC |