[Chicago-talk] Is this efficient.

Richard Reina richard at rushlogistics.com
Tue Oct 4 09:41:20 PDT 2005

I have a short program opens a file and adds a line
from when a certain event takes place.  So the file
does not get too big I remove the 1st line in the file
whenever one is added.  The only way I know how to do
this is:

system("perl -ni.bak -e 'print unless 1..1'

Is it ineficient to have this system call?  If so how
can I modify the code to work w/o the system (from
with the program)?  

Thanks you for the help.


A people that values its privileges above its principles soon loses both.
 -Dwight D. Eisenhower.

More information about the Chicago-talk mailing list