20141019: Updated categories.pl to handle blank lines in inputs.