in reply to weird problem with macports perl on apple m1/m2 based system

Can you reproduce the problem with less code? Tk should not be needed to invoke test().

Also, you should not use $a and $b, they are reserved for sort by perlvar.

And you should not need a string eval if you replace the formula and action fields in %pid with code references.

Both should not be the cause of your problem, though.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: weird problem with macports perl on apple m1/m2 based system
by perltux (Monk) on Jun 10, 2023 at 21:57 UTC
    I did previously a one liner test without Tk and couldn't reproduce the issue, that's why I added Tk which is also used in the program where I originally encountered this issue. Therefore I have a feeling that Tk has something to do with this issue.

    I noticed one other strange behavior with MacPorts Perl-Tk, it only seems to accept screen units in pixels, not inches, don't know what's up with that, but that's a different not so important (for me) issue.