Manjunath H N wrote: > On Saturday, May 31, 2003 1:24 PM > $Bill Luebkert <[EMAIL PROTECTED]> wrote: > > >>Manjunath H N wrote: >> >>>Hello All, >>> >>>The program prog.pl I have attached needs to read data from >>>PurchaseRequestDataFile.txt & chomp the contents & append it with >>>new Record count, But I am not able to chomp the contents, it is >>>just appending the Record count to the end of the file. >> >>This should be closer: >> >>#!/usr/bin/perl >> >>use strict; >>use Fcntl qw(:DEFAULT :flock); > > > Thanks for the script but it is exiting with > <html><body> > The data base file format is not valid!! > <BR>Report this error to <a href="mailto:[EMAIL PROTECTED]">Administrator</a> > </body>html> > EOD > > It is not appending the PurchaseRequestDataFile.txt > > Any pointers pls
I hope you deleted my temp. line: $PurchaseRequestDataFile = "data.txt"; Start by printing out each line as you read it from the file. You're not giving me much to go on since it worked here with your data file. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (Free site for Perl/Lakers) _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs