On Wed, Sep 19, 2001 at 09:30:14AM -0700, Chia Teng wrote:
> I have a huge file containing the following patterns to be deleted:
[snip]
> Is there a better way to do this in perl ?

A better way?  You didn't describe a way to do it in Perl, and your vi
solution wouldn't work in Perl, for what should be obvious reasons.

See perldoc -q 'in a file' or
http://www.perldoc.com/perl5.6.1/pod/perlfaq5.html, second link down, 'How
do I change one line in a file/delete a line in a file/insert a line in the
middle of a file/append to the beginning of a file?'


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to