in reply to foreach my $var scope oddness
$o is scoped to each loop, but it is an alias to each element of @outer in turn.
After Compline,Zaxo