in reply to help with scoping (code), part 2
{ my $bar; sub foo { ... } } [download]
HTH, --traveler
update: fix tiny typo