in reply to Stuck trying to append to a hash, I think

The structure you are generating is actually an arrayref-of-hashrefs.

Try this (untested):

my $items; for my $file (@file) { push @$items, { name => $file, url => \&Arbitrary_menu_2, # WHere do you get this from + ? }; }

             When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren

Replies are listed 'Best First'.
Re^2: Stuck trying to append to a hash, I think
by Bronston (Novice) on Nov 18, 2013 at 22:20 UTC
    Well that was simple. Thank you very much. "url => \&Arbitrary_menu_2, # WHere do you get this from" Each of these entries is a menu option, when clicked it runs the subroutine listed in the url, that truly is arbitrary as in i just made it up as it's more or less irrelevant to the code.