Sigmund has asked for the wisdom of the Perl Monks concerning the following question:
but it fills the log with 0x08 characters instead of backspacing over the previous character. useless.#!/usr/bin/perl -w use strict; my $output; $output = $ARGV[0].".clean"; open (INF, "< $ARGV[0]"); open (OUF, "> $output"); while (<INF>) { s/{BS}/\b/g; } print OUF $riga; close (INF); close (OUF);
{BS}{BS} | ------- this is current position {BS}{BS} ---- this is what it finds! {BS}{BS} ----- and this is what it deletes, leaving me with a {BS{BS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cleaning the Log
by demerphq (Chancellor) on Sep 02, 2002 at 15:55 UTC | |
by Aristotle (Chancellor) on Sep 03, 2002 at 14:34 UTC | |
|
Re: Cleaning the Log
by fglock (Vicar) on Sep 02, 2002 at 14:00 UTC | |
by demerphq (Chancellor) on Sep 02, 2002 at 16:06 UTC | |
|
Re: Cleaning the Log
by Arien (Pilgrim) on Sep 02, 2002 at 21:53 UTC | |
by BrowserUk (Patriarch) on Sep 02, 2002 at 22:31 UTC | |
by Arien (Pilgrim) on Sep 03, 2002 at 01:41 UTC | |
by Aristotle (Chancellor) on Sep 03, 2002 at 01:51 UTC | |
by demerphq (Chancellor) on Sep 03, 2002 at 10:07 UTC | |
|