Changeset 24449
- Timestamp:
- 2011-08-23T14:06:33+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ReadTextFile.pm
r23484 r24449 216 216 217 217 if ($encoding eq "ascii") { 218 undef $/; 219 $$textref = <FILE>; 220 $/ = "\n"; 218 # Replace file 'slurp' with faster implementation 219 sysread(FILE, $$textref, -s FILE); 220 221 # The old slow way of reading in a file 222 #undef $/; 223 #$$textref = <FILE>; 224 #$/ = "\n"; 221 225 } else { 222 226 my $reader = new multiread();
Note:
See TracChangeset
for help on using the changeset viewer.