open(IN,"myfile.txt");
while(<IN>){ each line of your file is iterated over... the contents of each line are stored in the variable $_ }
In reply to Re: foreach loop
by insensate
in thread foreach loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |