in reply to Re: Re: Declaring a code ref with arguments
in thread Declaring a code ref with arguments
as you can see he uses curly brackets to build a hash and lacks right parenthesis just after "Hello World, again!\n"%hash = {no_arg => \&print_me, with_arg => \&print_me("Hello World, again!\n" };
so you have to dobar =>\&do_bar("argument")
that's all..bar => sub { do_bar("argument") }
|
|---|