This is because you are doing the compare outside the inner loop ( where $sample2 is out of scope). Move the if block inside the inner loop and it will run. Fix that first and if it still won't run as expected show us what the first line in both files look like.Global symbol "$sample2" requires explicit package name at...
In reply to Re: Misunderstood array behavior
by wfsp
in thread Misunderstood array behavior
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |