文本文件如下所示:
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.35.195.1 YES NVRAM up up
FastEthernet0/1 unassigned YES manual up down
SSLVPN-VIF0 10.35.195.1 YES unset up up
Loopback0 10.35.255.193 YES NVRAM up up
Loopback1 10.35.255.196 YES NVRAM up up
Loopback2 10.35.255.201 YES NVRAM up up
Loopback3 10.35.255.211 YES NVRAM up up
分隔符 char 是空格而不是 "," ,这是Slurp
. 如何让它发生?
我尝试sep_char
如下所示,但失败了。
my $data = Text::CSV::Slurp->load(file => 'table.txt',sep_char >= 0x20);