#!/usr/bin/perl6
# your code goes here
use trace;
my %field-table = %{
'标题' => 'title',
'title' => 'title',
'责任者' => 'creatorSearch',
'creatorsearch' => 'creatorSearch',
'出版者' => 'publisher',
'publisher' => 'publisher',
'标准编码' => 'isbnSearch',
'isbnsearch' => 'isbnSearch',
'索书号' => 'call_number',
'call_number' => 'call_number',
'callnumbersearch' => 'call_number',
'主题词' => 'subject',
'subject' => 'subject',
'全部字段' => 'all',
'all' => 'all',
}
say %field-table;
IyEvdXNyL2Jpbi9wZXJsNgojIHlvdXIgY29kZSBnb2VzIGhlcmUKCnVzZSB0cmFjZTsKCm15ICVmaWVsZC10YWJsZSA9ICV7CiAgICAgICAgICAgICfmoIfpopgnICAgICAgICAgICAgICAgPT4gJ3RpdGxlJywKICAgICAgICAgICAgJ3RpdGxlJyAgICAgICAgICAgICAgPT4gJ3RpdGxlJywKICAgICAgICAgICAgJ+i0o+S7u+iAhScgICAgICAgICAgICAgID0+ICdjcmVhdG9yU2VhcmNoJywKICAgICAgICAgICAgJ2NyZWF0b3JzZWFyY2gnICAgICAgPT4gJ2NyZWF0b3JTZWFyY2gnLAogICAgICAgICAgICAn5Ye654mI6ICFJyAgICAgICAgICAgICAgPT4gJ3B1Ymxpc2hlcicsCiAgICAgICAgICAgICdwdWJsaXNoZXInICAgICAgICAgID0+ICdwdWJsaXNoZXInLAogICAgICAgICAgICAn5qCH5YeG57yW56CBJyAgICAgICAgICAgID0+ICdpc2JuU2VhcmNoJywKICAgICAgICAgICAgJ2lzYm5zZWFyY2gnICAgICAgICAgPT4gJ2lzYm5TZWFyY2gnLAogICAgICAgICAgICAn57Si5Lmm5Y+3JyAgICAgICAgICAgICAgPT4gJ2NhbGxfbnVtYmVyJywKICAgICAgICAgICAgJ2NhbGxfbnVtYmVyJyAgICAgICAgPT4gJ2NhbGxfbnVtYmVyJywKICAgICAgICAgICAgJ2NhbGxudW1iZXJzZWFyY2gnICAgPT4gJ2NhbGxfbnVtYmVyJywKICAgICAgICAgICAgJ+S4u+mimOivjScgICAgICAgICAgICAgID0+ICdzdWJqZWN0JywKICAgICAgICAgICAgJ3N1YmplY3QnICAgICAgICAgICAgPT4gJ3N1YmplY3QnLAogICAgICAgICAgICAn5YWo6YOo5a2X5q61JyAgICAgICAgICAgICA9PiAnYWxsJywKICAgICAgICAgICAgJ2FsbCcgICAgICAgICAgICAgICAgPT4gJ2FsbCcsCiAgICAgICAgfQogICAgICAgIAogICAgICAgIHNheSAlZmllbGQtdGFibGU7
2 (/home/rJF4Qm/prog.pl line 6)
my %field-table = %{
'标题' => 'title',
'title' => 'title',
'责任者' => 'creatorSearch',
'creatorsearch' => 'creatorSearch',
'出版者' => 'publisher',
'publisher' => 'publisher',
'标准编码' => 'isbnSearch',
'isbnsearch' => 'isbnSearch',
'索书号' => 'call_number',
'call_number' => 'call_number',
'callnumbersearch' => 'call_number',
'主题词' => 'subject',
'subject' => 'subject',
'全部字段' => 'all',
'all' => 'all',
}
Odd number of elements found where hash initializer expected:
Only saw: -> ;; $_? is raw { #`(Block|56133584) ... }
in block <unit> at prog.pl line 6