home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _97967158874987a05a3f83016459893a < prev    next >
Text File  |  2004-06-01  |  561b  |  22 lines

  1. # NOTE: Derived from ..\blib\lib\Tk\Listbox.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Listbox;
  5.  
  6. #line 880 "..\blib\lib\Tk\Listbox.pm (autosplit into ..\blib\lib\auto\Tk\Listbox\clipboardPaste.al)"
  7. sub clipboardPaste
  8. {
  9.  my $w = shift;
  10.  my $index = $w->index('active') || $w->index($w->XEvent->xy);
  11.  my $str;
  12.  eval {local $SIG{__DIE__}; $str = $w->clipboardGet };
  13.  return if $@;
  14.  foreach (split("\n",$str))
  15.   {
  16.    $w->insert($index++,$_);
  17.   }
  18. }
  19.  
  20. # end of Tk::Listbox::clipboardPaste
  21. 1;
  22.