in reply to Deleting on Text File

I think there's something not logical in your function:
let's assume everything else is working... this is how the while loop can look like
while(/<\?--([^-]*)-([^-]*)-->(.*?)<\/\?--([^-]*)-([^-]*)-->/sg){ # $a=$1;$b=$2;$c=$3;$d=$4;$e=$5; # drop all those a b c d's next if ($1 eq $location && $2 eq $obj_name); $list .= "<?--$1-$2-->$3</?--$4-$5-->\n"; }

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Chady | http://chady.net/

Replies are listed 'Best First'.
Re: Re: Deleting on Text File
by Anonymous Monk on Oct 22, 2002 at 18:53 UTC
    Thank you that works too. But how do I delete this portion?