in reply to Why my perl script skip my some of the executed lines even without using conditions??

Hi

This is not the case. If you have a condition check before calling "PrintSummary" function as follows :-

if ($answer eq "y") { #--Run DB2LDIF Before Changes--# $b4_after_statu +s = $db2ldif_after_ext Db2Ldif ValidUserArray ExtractUsers PrintSummary }
If $answer eq 'Y' then definitely the function would have been called.
The reasons when "PrintSummary" would not have beed called are as follows :-
1) If there is any exit statment in the previous function
2) If there is any condition check and return statement in the begining of "PrintSummary" function then you may not come to know whethere the function is called or not

"Keep pouring your ideas"
  • Comment on Re: Why my perl script skip my some of the executed lines even without using conditions??
  • Download Code