I'm going to hazard a guess that you are opening this file each time you
write these five lines, and that you are using

open FILEHANDLE, ">/path/to/file.txt" or die "Always check for errors: $!";

which will overwite the existing file. Try using

open FILEHANDLE, ">>/path/to/file.txt" or die "Always check for errors: $!";
                   ^
                   |
            Note second > symbol

This will append to the file.

Without seeing your code though, it's very hard to tell.

John

-----Original Message-----
From: Sead Bahtijarevic [mailto:[EMAIL PROTECTED]]
Sent: 16 November 2001 09:50
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: A program


Hi

I want to create a program it takes login, logout, xlock and unxlock and
write that in a file.

If it's more than five lines deletes all lines but not last five.

Someone who can help me please?




-------------------------------------------------------------
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to