+ if ( $opt{'ratecenter'} && $opt{'state'} ) {
+ my $rc = $opt{ratecenter};
+ $rc =~ s/, [A-Z][A-Z]$//g;
+ $hash{name} = $rc;
+ $hash{state} = $opt{state};
+
+ return [ map { $_->npa. '-'. $_->nxx. '-'. $_->station }
+ qsearch({ 'table' => 'phone_avail',
+ 'hashref' => \%hash,
+ 'order_by' => 'ORDER BY station',
+ })
+ ];
+ }
+ elsif ( $opt{'areacode'} && $opt{'exchange'} ) { #return numbers