- Timestamp:
- 03/25/05 12:03:52 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Class/ParseText/Base.pm
r55 r75 49 49 } 50 50 51 #TODO: get this working52 51 sub parse_handle { 53 52 my ($self, $fh) = @_; … … 57 56 58 57 my $src; 59 while ($_ = readline($fh)) { $src .= $_ } 60 warn $src; 58 local $/ = undef; 59 $src = readline($fh); 60 close $fh; 61 61 return $self->parse_text($src); 62 62 } … … 152 152 Parses the contents of of the file C<$filename>. Returns the parser object. 153 153 154 =head2 parse_handle 155 156 $p->parse_handle($fh); 157 158 Slurps the remainder of the file handle C<$fh> and parses the contents. 159 Returns the parser object. 160 154 161 =head2 parse_array 155 162
Note: See TracChangeset
for help on using the changeset viewer.