是否可以告诉 Config::IniFiles 模块以"
不会导致整个解析过程失败的方式处理包含在其中的多行值?我必须处理这样一个ini文件,不幸的是我无法更改它的任何内容。
这就是它的样子
198 revive.msg.fm.email2= "
199 text text text
200 some more text
201 even more text
202
203 and some more"
试图解析文件
20 my $cfg_file = Config::IniFiles->new(
21 -file => '/path/to/config_test.ini',
22 ) || die Dumper \@Config::IniFiles::errors;
给我
$VAR1 = [
'Line 199 in file /home/zzzpetscript/config_test.ini is mal-formed:
text text text',
...
];
我正在查看-allowcontinue 0|1
,但这仅适用于 trailing \
,我无法将其插入文件中,因为我没有任何权限来更改我必须解析的那些 ini 文件。