perlquestion
vinoth.ree
<p>I got this question from this site</p>
<a href="http://stackoverflow.com/">question</a>
<p>They would have given some answers, but I did not get the clarification, thats why I posted this question here to get more clarification I am sorry that I not informed the site where I got this question pardon me! please </p>
<p>
I have a filehandle FILE in Perl, and I want to iterate over all the lines in the file. Is there a difference between the following?</p>
<c>while (<FILE>) {
# do something
}
and
foreach (<FILE>) {
# do something
}</c>
<div class="pmsig"><div class="pmsig-734134">
Vinoth,G
</div></div>