http://qs1969.pair.com?node_id=27246


in reply to (zdog) RE: (2) mybooks.pl
in thread mybooks.pl

Yes, the array of code references should not have been created using qw. That string-ifies the contents of the array, which means that you end up with an array containing ("\&addwant"), etc.

Which isn't what you want. You want:

my @actions = (\&addwant, \&addhave);