in reply to Re^2: scoping problems
in thread scoping problems

If you use @saba, not $saba, in scalar context, you get the arraysize indeed. This is why your $i<@saba works.