Hi Tom, Thanks for the reply. > Although it's tempting to set $/ to "\n>" for the > file format you > describe, that's probably not correct for the first > or last record in > your file.
You are 50% right. This method is not correct for the first record(which actually contains ">' only) but it is correct for the last record(and others in between). >I recommend that you write code to > identify each record > (with regular expressions, perhaps?) instead of > using $/. > Alternatively, you could pre-process the data file > in some way so that > using $/ would be a good solution. I want to edit the file first and try to delete the first ">" in this big file. I browse Programming Perl and Perl Cookbook there is not such example: just delete the first charater in a file. But they have examples to delete the last line from a file. It seems odd to me. Li __________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>