You should chomp both read lines or alternatively @mylist and @myfile, but only chomping @temp looks strange.
If this doesn't help try Data::Dumper to inspect your data.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re: Looping in a Loop
by LanX
in thread Looping in a Loop
by Violet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |