To evaluate it so I do something like this?open(PARTS, $partlist) || die "Can't open file: $!"; chomp(@PARTS = <PARTS>); %hash_table = (@PARTS);
foreach (keys %hash_table) { if ($_ eq $ordnum) { #do something } else { #do something else } }
In reply to Re^4: Looping through a file
by baixiaohu
in thread Looping through a file
by baixiaohu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |