From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: community@altlinux.ru Subject: Re: [Comm] sed -? References: <20041005164309.1f3826e6.dov@media-link.info> <20041005172736.39cdbc05.dov@media-link.info> Message-ID: From: "Aleksander N. Gorohovski" Organization: DonNTU Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Wed, 06 Oct 2004 18:19:58 +0400 In-Reply-To: <20041005172736.39cdbc05.dov@media-link.info> User-Agent: Opera M2/7.54 (Linux, build 751) X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 11:17:05 -0000 Archived-At: List-Archive: List-Post: On Tue, 5 Oct 2004 17:27:36 +0300, Dolgov OV wrote: > On Tue, 05 Oct 2004 17:07:04 +0400 > "Aleksander N. Gorohovski" wrote: >> Напиши програмку на perl, типа >> --------------------------------- >> #!/usr/bin/perl >> >> open (FILE,"list1.txt"); >> @a=; >> close (FILE); >> my $i; >> for (@a) { >> /<\/TD><\/tr>/\n/g; >> $a[$i++]=$_; >> } >> open (FILE,">list2.txt"); >> print FILE @a; >> close (FILE); >> ------------------------- >> Если ничего не пропустил, должно работать > > Чегото он ругается на команду перевода строки в программе (если я > правильно понял): > Backslash found where operator expected at ./myperl line 8, near > "/<\/TD><\/tr>/\" (Missing operator before \?) > syntax error at ./myperl line 8, near "/<\/TD><\/tr>/\" > Execution of ./myperl aborted due to compilation errors. Sorry, должно быть s/<\/TD><\/tr>/\n/g;