in reply to Re: Code reference ( \&notThisCall() )
in thread Code reference

Thanks for the answer. Unfortunately already checked that. No brakets there.
  • Comment on Re^2: Code reference ( \&notThisCall() )

Replies are listed 'Best First'.
Re^3: Code reference ( \&notThisCall() )
by davido (Cardinal) on Aug 26, 2014 at 14:43 UTC

    Then post a small self-contained code example that actually demonstrates the problem, so we can see what it is that you're doing wrong.


    Dave

Re^3: Code reference ( \&notThisCall() )
by Anonymous Monk on Aug 26, 2014 at 07:25 UTC

    Thanks for the answer. Unfortunately already checked that. No brakets there.

    Then check other parts of your code for place where you call/invoke the subroutines ... through $subs or other means :)

Re^3: Code reference ( \&notThisCall() )
by AnomalousMonk (Archbishop) on Aug 26, 2014 at 15:33 UTC

    Also check for other inadvertent (but, believe me, all too possible) fatfinger variations that you NOT wanna have:

    c:\@Work\Perl>perl -wMstrict -MData::Dump -le "sub S { print 'oops...'; } ;; my $hr = { 'darn' => S, 'rats' => \S, 'nuts' => &S, }; ;; dd $hr; " oops... oops... oops... { darn => 1, nuts => 1, rats => \1 }