home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / apache / files / ActivePerl-5.6.1.638-MSWin32-x86.msi / _ba9ad5ac99dfac24846103c2cbb705ad < prev    next >
Encoding:
Text File  |  2004-04-13  |  497 b   |  23 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 841 "..\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. 1;
  22. # end of Tk::Listbox::getSelected
  23.