How do I put an array on the POE heap, and push/pop data to/from it?
I'm trying to put the following array on the heap:
@commands = (
["quit",\&Harlie::Commands::do_quit,10],
["part",\&Harlie::Commands::do_part,10],
["join",\&Harlie::Commands::do_join,10],
["nick",\&Harlie::Commands::do_nick,10],
["module",\&Harlie::Commands::do_modules,10],
["uptime",\&Harlie::Commands::do_uptime,0]
);
And how would I be able to access the function references contained within? Currently, I can run them via:
@commands->[$foo]->(@bar);
Would I be correct in assuming it would simply be?:
$heap->{commands}->[$foo]->(@bar);