home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _ba9ad5ac99dfac24846103c2cbb705ad < prev    next >
Text File  |  2004-06-01  |  501b  |  25 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 893 "..\blib\lib\Tk\Listbox.pm (autosplit into ..\blib\lib\auto\Tk\Listbox\getSelected.al)"
  7. sub getSelected
  8. {
  9.  my ($w) = @_;
  10.  my $i;
  11.  my (@result) = ();
  12.  foreach $i ($w->curselection)
  13.   {
  14.    push(@result,$w->get($i));
  15.   }
  16.  return (wantarray) ? @result : $result[0];
  17. }
  18.  
  19. 1;
  20. __END__
  21.  
  22.  
  23. 1;
  24. # end of Tk::Listbox::getSelected
  25.