use DXVars;
use DB_File;
use Data::Dumper;
+use Carp;
use strict;
use vars qw($db %prefix_loc %pre);
-local $db; # the DB_File handle
-local %prefix_loc; # the meat of the info
-local %pre; # the prefix list
+$db; # the DB_File handle
+%prefix_loc; # the meat of the info
+%pre; # the prefix list
sub load
{
# remove any /0-9 /P /A /M /MM /AM suffixes etc
if (@parts > 1) {
$p = $parts[$#parts];
- pop @parts if $p =~ /^\d+|[PABM]|AM|MM|BCN|SIX$/o;
+ pop @parts if $p =~ /^(\d+|[PABM]|AM|MM|BCN|SIX|Q\w+)$/o;
$p = $parts[$#parts];
- pop @parts if $p =~ /^\d+|[PABM]|AM|MM|BCN|SIX$/o;
+ pop @parts if $p =~ /^(\d+|[PABM]|AM|MM|BCN|SIX|Q\w+)$/o;
# can we resolve them by direct lookup
foreach $p (@parts) {