- 求職 : 軟件工程師
- 論壇徽章:
- 3
|
本帖最后由 104359176 于 2014-05-28 15:37 編輯
回復(fù) 5# snowboar
不用捂臉,誰(shuí)都會(huì)經(jīng)歷這個(gè)時(shí)段的,誰(shuí)也都會(huì)有這種尷尬,沒關(guān)系,付錢就好了。請(qǐng)往我的alipay賬戶里付5元。(15013725234)
split-words.pl- #!perl
- use 5.010;
- my $file = $ARGV[0];
- {
- local $/ = undef;
- open(my $fh, '<', $file) or die $!;
- my $text = <$fh>;
- $text =~ s/\s+/chr(10)/xmsge;
- say $text;
- }
復(fù)制代碼 調(diào)用的時(shí)候:
perl split-words.pl input.txt > output.txt
split-word.zip
(837 Bytes, 下載次數(shù): 8)
2014-05-28 15:37 上傳
點(diǎn)擊文件名下載附件
拆分字符串
|
|