in reply to Re: (bbfu) (here's an example) Re: perl tk popup menu
in thread perl tk popup menu

I tried the example Perl code. In order to make it work, I had to make three changes:
  • change the hashbang line from #!/usr/bin/perl to #!/usr/bin/env perl
  • change the cget() call from cget('text') to cget('-text')
  • change the insert() call from insert(0,...) to insert(1,...)
    • Comment on Re^2: (bbfu) (here's an example) Re: perl tk popup menu