if ( @vars{@fields} = $line=~m!(map|reverse_map)\s+(\w+)://(.*?)\s+\2://(.*?)$! ) { $result = $template->fill_in(HASH => \%vars); }