in reply to Re^2: How to delete a particular line in a text file after some operation on that text file at the same time
in thread How to delete a particular line in a text file after some operation on that text file at the same time
You need to post a small self-contained program to demonstrate your problem. That way, we can reproduce your problem, verify that the output is wrong, and then offer ways to fix it. Unfortunately, your example code above refers to $time yet that variable is not defined in your posted code.
Oh, and make sure that all self-contained code samples you post start with:
use strict; use warnings;
Update: See also SSCCE (Short, Self Contained, Correct (Compilable) Example).
|
|---|