in reply to Declaring a code ref with arguments

%hash = (no_arg => \&print_me, with_arg => sub {print_me "Hello World, again\n"}, );

Abigail

Replies are listed 'Best First'.
Re: Re: Declaring a code ref with arguments
by !unlike (Beadle) on Aug 05, 2003 at 09:30 UTC

    D'oh! Of course! Silly me.

    Thanks to all who repied. The fix worked a treat.

    Cheers

    !unlike

    I write my Perl code like how I like my sex: fast and dirty. ;)