我有以下文件:如何在自己的分隔符上分割文件?
some data
some data 1
some data 1
hostname = abc
some data
some data 1
some data 1
some data
some data 1
some data 1
hostname = xyz
some data
some data 1
some data 1
some data
some data 1
some data 1
hostname = pqr
some data
some data 1
some data 1
some data
some data 1
some data 1
我如何可以提取使用Perl 2名的主機名行條目之間的界限?
我想這是一個罕見的情況之一時,你真的希望$ /可以設置爲一個正則表達式:-) – 2011-03-02 09:12:16