![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re^4: Need help with a simple perl scriptby choroba (Cardinal) |
on May 24, 2012 at 11:56 UTC ( #972228=note: print w/replies, xml ) | Need Help?? |
For the while loop, as "print" is not contained in while, it ll take the inputs all the time without printing anything.Not really. "print" is in a for loop, and it prints the output as desired, because the for loop uses the implicit variable $_.
In Section
Seekers of Perl Wisdom
|
|