in reply to Re: Calling a function reference with arguments
in thread Calling a function reference with arguments

That can't be the cause of the problem, since %hash{"my_func"} is a compile time syntax error, not a runtime error like "can't use '1'" ..." in your original post.

update: at least it is in current perl (5.8.8) it might be different in old(er) perls.

  • Comment on Re^2: Calling a function reference with arguments

Replies are listed 'Best First'.
Re^3: Calling a function reference with arguments
by Zubinix (Acolyte) on Apr 17, 2007 at 23:50 UTC
    Yep, it should have been $hash{"my_function"}.