Ln8: print "my fpc of intf is $fpc[0]\n";
If you have not declared @fpc outside the foreach (beginning at Ln3) it's going to change with each iteration because the array gets overwritten each time thru the loop; if you have declared it outside the loop it won't change.
The absence of a my @fpc declaration in what you've shown us suggests either that you're not using strict (hint, hint -- usually a very good idea) or that you've declared the array in code you haven't shown. Neither of those possibilities makes it easy to be confident that any particular observation will help you.
So, as others have advised (or hinted) above, you need to clarify your exposition... or your thinking.