in reply to Re: Can't get Dialog or messageBox to work from button
in thread Can't get Dialog or messageBox to work from button

Sure!
sub xx { shift() + 1 } say \&xx(3); # SCALAR(0x60003b660) say ${ \&xx(3) }; # 4 say sub { \&xx(shift) }->(3); # SCALAR(0x60003b888) say ${ sub { \&xx(shift) }->(3) }; # 4
How much easier than
say xx(3); # 4 say sub { xx(shift) }->(3); # 4
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: Can't get Dialog or messageBox to work from button
by karlgoethebier (Abbot) on Jan 11, 2016 at 19:34 UTC

    I don't use Tk and therefore i didn't really read the friendly manual but i would like to mention that i figured out in a hurry that the construct hotchiwawa mentions can be found here and here. Perhaps he jumped to the wrong conclusion?

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      I don't use Tk and therefore i didn't really read the friendly manual
      This is not Tk related. This is referencing in Perl.
      that the construct hotchiwawa mentions can be found here and here
      No, it can't. There's a big difference between the two:
      my $value_ref = \&callback(); my $code_ref = \&callback; # <-- See? No parentheses!
      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
        "See? No parentheses!"

        Yep. I see it. Thank you very much for clarification.

        But note what i wrote: "... the wrong conclusion... in a hurry..."

        Best regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

      I updated my 1st post with 2 examples yesterday ;)
      Interesting your doc.