Changeset 13318
- Timestamp:
- 2006-11-24T09:47:44+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/gti-process-spreadsheet.pl
r13296 r13318 60 60 $excel_txt_file_data =~ s/\r//g; 61 61 62 # Make sure the first line is where we want it, and remove all stray tabs62 # Make sure the first line is where we want it, and remove all stray whitespace 63 63 $excel_txt_file_data =~ s/^(\n)*/\n\n/; 64 $excel_txt_file_data =~ s/\n \t\n/\n\n/g;64 $excel_txt_file_data =~ s/\n(\s*)\n/\n\n/g; 65 65 66 66 # Split into chunks … … 72 72 my $total_number_of_chunks = ($excel_txt_file_data =~ s/source::/source::/g); 73 73 if (scalar(@chunks) != $total_number_of_chunks) { 74 die "Error: Expected $total_number_of_chunks chunks but only have " . scalar(@chunks) . " from splitting .";74 die "Error: Expected $total_number_of_chunks chunks but only have " . scalar(@chunks) . " from splitting"; 75 75 } 76 76
Note:
See TracChangeset
for help on using the changeset viewer.