in reply to Printing a subset of a data structure

definately use strict and use warnings.
You call upon %menu without declaration. Did you mean %menus?
  • Comment on Re: Printing a subset of a data structure