in reply to Re: text files are printed after the end of second module
in thread text files are printed after the end of second module

thanks for your reply.yes I call "prerequest_collect_files_db_url" first after creating text files in this and I will compare that in prerequest2.pl. When I close there itself i am getting only one line in text files

  • Comment on Re^2: text files are printed after the end of second module

Replies are listed 'Best First'.
Re^3: text files are printed after the end of second module
by Anonymous Monk on Jul 06, 2014 at 17:53 UTC

    Your original post implied that the files were empty when you call prerequest2.pl, but if they have some content then the error situation is actually completely different. Please see "How do I post a question effectively?" and follow the suggestions there (such as providing sample input and expected output) so your posts are more helpful to those providing help.

    How many lines are there in your input? Have you tested your conditions and other parts of the code (xpathconfiguration.pl, domain_check(), and the grep) to be working? I'd suggest printing some debug output in your innermost loops to see what actually gets written to the file. Also, see Basic debugging checklist

      hi sorry for inconvenience the code provided is for prerequest_collect_files_db_url and i expect this module to create 2 text files after creating those files i have to compare to text files in prerequest2.pl.When i run the script text files are created only at the end of prerequest2.pl that is supposed to be created at the end of "prerequest_collect_files_db_url" sub.