Hi all ! I'm brand to Perl programming and can't go out of a little pb.
Well, assuming a file like this below: ---date1--- data block ---END date1--- ---date2--- data_block ---END date2--- .../.. ---date(n-1)--- data_block ---END date(n-1)--- ---daten--- data_block ---END daten--- I can't mv and/or rename this file, because is always feed with datas. What i want to do is : - 1) Select each block of data from ---datex--- to ---END datax--- I made this part of the job, OK. - 2) open this file in RDWR and DELETE all the lines corresponding to the data blocks i made the selection on, previously. That is keep only date(n-1) and daten refered blocks... So my question is : HOW CAN I DELETE LINES IN A FILE ? Any help welcome; i'm stuck ! Regards. Jean-Luc :O) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]