in reply to Assigning variables with mouse highlighting

Please let us know what module you are using. Tk, GTK+, Win32::GUI, something else? In Tk you can do this by creating a tag on your Text widget using the "bind" method, to call a particular subroutine on double-click, and use the getSelected method to obtain the current selection at that point.
my $mw = MainWindow->new; my $txt = $mw->Text(-height => 5, -width => 40); $txt->bind('<Double-Button-1>', sub { local $\ = "\n"; print $txt +->getSelected}); $txt->pack;

Replies are listed 'Best First'.
Re^2: Assigning variables with mouse highlighting
by Anonymous Monk on Feb 03, 2005 at 23:47 UTC
    I am using TK.