76 |
|
$filehandle->open("<$self->{filename}") |
77 |
|
or return 1; |
78 |
|
# The buffering seems all messed up - best not to use it |
79 |
< |
$filehandle->setvbuf($buf, _IONBF, 300); |
79 |
> |
$filehandle->setvbuf($buf, _IONBF, 3000); |
80 |
|
|
81 |
|
# Start file processing |
82 |
|
while ( ($_=<$filehandle>) ) { |
83 |
|
$self->{linecount}++; |
84 |
|
$self->{currentline}=$_; |
85 |
– |
if ( $self->{linecount} > 5 ) { |
86 |
– |
$DB::single=1; |
87 |
– |
} |
85 |
|
$self->{stringpos}=0; |
86 |
|
while ( ($char=$self->_nextchar()) ne "" ) { |
87 |
|
$self->_checkchar($char); |
88 |
|
} # end char while |
89 |
|
} # End String while loop |
90 |
< |
close $filehandle; |
94 |
< |
1; |
90 |
> |
undef $filehandle; |
91 |
|
} |
92 |
|
|
93 |
|
sub checkparam($name, $key) { |