This should add to the list except when the condition is true. I would have like to test this code but you did not give any sample data.unless (($a eq $location) and ($b eq $obj_name)) { $list=$list. "<?--$a-$b-->$c</?--$d-$e-->\n"; }
P.S. I noted that your question has a low reputation. I suspect that the lack of sample data may have contributed to it.
In reply to Re: Deleting on Text File
by admiraln
in thread Deleting on Text File
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |