Every time i've tried
BulkRegister, i've had no success, and a maxed out CPU. I've just fored out one reason - the
DelimitedFile::read assumes the table starts on the first line - and if not, you get an infinite loop
i've gone for a dumb solution to this
--- TWiki/Data/DelimitedFile.pm (revision 10222)
+++ TWiki/Data/DelimitedFile.pm (working copy)
@@ -42,9 +42,14 @@
my @content = split $rowend, $content;
my $headerRow = shift @content;
+ until ($headerRow =~ /\Q$delimiter\E/ ) {
+ $headerRow = shift @content;
+ }
$headerRow =~ s/\x0a*//g;
$headerRow =~ s/\x0d*//g;
but this suggests to me that without a proper test suite, this code should not be trusted by anyone, for anything
This code wants "the first table in the topic". Is there a way to address and pass that?
--
MC